Koha/misc/cronjobs
Jonathan Druart 97b43e633d Bug 15705: Reset the last error when an auto renew successes
The auto_renew_error has to be reset when an auto renew successes,
otherwise the patron is not going to receive the correct notice.

Test plan;
- Checkin an item and mark it as auto renewal (specify a due date in the past to allow auto renewals)
- Set OPACFineNoRenewalsBlockAutoRenew to 'Block' and 'OPACFineNoRenewals' to '1'
- Execute the script
=> Auto renewed, column auto_renew_error is null
- Add a fine of '2' to the patron
- Execute the script
=> Not auto renewed, column auto_renew_error is 'auto_too_much_oweing'
=> On the interface youo see the correct message "Automatic renewal failed, patron has unpaid fines"
- Pay the fine
- Execute the script

Without this patch the auto_renew_error is not reset and the patron is going to
receive a letter telling him he own too much money to the library
With this patch the patron will receive a letter to inform him the renew has been done!

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-05-09 21:09:08 +00:00
..
holds
rss
social_data
thirdparty Bug 17762: Send lang to GetPreparedLetter 2017-05-09 20:56:41 +00:00
advance_notices.pl Bug 18554: Adjust a few typos including responsability 2017-05-09 21:03:22 +00:00
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 15705: Reset the last error when an auto renew successes 2017-05-09 21:09:08 +00:00
backup.sh
batch_anonymise.pl Bug 16966: move parameters to hashref 2017-03-03 17:20:05 +00:00
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
check-url.pl
cleanup_database.pl Bug 18300: Delete missing upload records 2017-04-21 00:11:39 +00:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 17669: Add new switch to crontab example and debian daily cron file 2017-04-21 13:55:25 -04:00
delete_expired_opac_registrations.pl
delete_items.pl
delete_patrons.pl
delete_records_via_leader.pl Bug 17196 - (QA Followup) Use items from Koha::Biblio 2017-01-13 13:49:29 +00:00
delete_unverified_opac_registrations.pl
edi_cron.pl
fines.pl
gather_print_notices.pl
import_webservice_batch.pl
j2a.pl
longoverdue.pl
membership_expiry.pl Bug 17762: Send lang to GetPreparedLetter 2017-05-09 20:56:41 +00:00
merge_authorities.pl Bug 9988: Refactor the cron script 2017-04-13 08:53:47 -04:00
nl-sync-from-koha.pl
nl-sync-to-koha.pl
notice_unprocessed_suggestions.pl Bug 17762: Send lang to GetPreparedLetter 2017-05-09 20:56:41 +00:00
overdue_notices.pl Bug 17952 - Lost items not skipped by overdue_notices.pl 2017-05-08 08:55:59 -04:00
printoverdues.sh
process_message_queue.pl
purge_suggestions.pl
remove_temporary_edifiles.pl
runreport.pl Bug 14365 - Populate never used saved_sql column last_run when execute_query is called 2017-03-31 13:54:22 +00:00
serialsUpdate.pl
services_throttle.pl
share_usage_with_koha_community.pl Bug 18066: Hea V2 2017-03-23 00:10:46 +00:00
sitemap.pl
staticfines.pl
update_totalissues.pl