Koha/misc/cronjobs
Sophie Meynieux 40ece625bb Bug 13018 : Static fine should be charged only once
Test plan (see Bug 6858 for using staticfine.pl) :

For a user (of a given category and library) with several overdues, launch the script :

staticfines.pl --category CAT,AMOUNT --library LIB --delay DELAY

Then, check that the user has been charged of AMOUNT if the due date of the most late item plus the delay is *before* today.

One day later, re-execute the script with the same parameters and check that the fine has not been charged twice.

Without patch, the fine is charged twice, with patch the user already charged is skipped (see output in debug mode)

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Without the patch, the fine will be applied every time the script is run.
With the patch the fine will only be applied once.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-11 09:44:01 -03:00
..
holds
rss Bug 9000: Followup to fix tabs & closing TT directive 2014-07-29 16:25:56 -03:00
social_data
thirdparty Bug 11867: MTT: Manage *_PHONE notices 2014-05-02 20:29:20 +00:00
advance_notices.pl Bug 12396 - MTT FIX: Due notices (DUEDGST) are multiplicated and all of them are sent to everybody who is about to receive ODUEDGST. 2014-06-15 11:14:45 -03:00
automatic_renewals.pl Bug 11577: Add an automatic renewal cronjob 2014-09-17 19:23:23 -03:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
check-url.pl
cleanup_database.pl Bug 12760 - add restrictions purge to cleanup_database.pl (followup 2) 2014-11-07 11:32:31 -03:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 11577: Add an automatic renewal cronjob 2014-09-17 19:23:23 -03:00
delete_expired_opac_registrations.pl Bug 11945: The script should die if the pref are not filled 2014-10-24 10:02:01 -03:00
delete_patrons.pl
delete_unverified_opac_registrations.pl
fines.pl
gather_print_notices.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00
import_webservice_batch.pl
j2a.pl Bug 10611: Use mysql_auto_reconnect instead of ping 2014-03-10 23:15:35 +00:00
longoverdue.pl
MARC21_parse_test.pl
overdue_notices.pl Bug 8687 - Overdues: Add utf-8 support to HTML and additional fields to CSV output 2014-10-19 11:38:02 -03:00
printoverdues.sh
process_message_queue.pl
purge_suggestions.pl
runreport.pl Bug 9530 Making changes to misc/cronjobs/runreport.pl 2014-10-27 10:38:47 -03:00
serialsUpdate.pl Bug 12003: Do not calculate next pubdate for irregular subscriptions 2014-04-18 20:57:51 +00:00
services_throttle.pl
share_usage_with_koha_community.pl Bug 11926 [Follow-up] HEA - Render community koha statistic usages 2014-10-22 15:17:23 -03:00
staticfines.pl Bug 13018 : Static fine should be charged only once 2014-11-11 09:44:01 -03:00
update_totalissues.pl Bug 12995 - script update_totalissues.pl stops on corrupted record 2014-10-31 14:14:24 -03:00