Koha/misc/cronjobs
Aleisha Amohia f406aa2ae3
Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron
I believe the error is triggered when borrowernumbers are left empty in
the accountlines table. Not sure why this would happen, but it appears
to be what causes the problem.

Do not apply the first patch if testing this patch.

To test:
1) sudo koha-mysql INSTANCENAME
2) Create a test borrower, add any payment etc to create an accountline,
    then delete this borrower
3) ensure the AccountAutoReconcile syspref is disabled
4) Go to another borrower's accounting tab
5) Create a manual credit or debit. Confirm this shows in the 'Make a
payment' tab as an amount that COULD be applied, but isn't automatically
applied
6) in your terminal, run the reconcile_balances.pl script
7) Confirm the error does not show in the logs and the balance for
the borrower is correctly reconciled.

Sponsored-by: Horowhenua District Council
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-14 08:21:31 +01:00
..
holds Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
rss Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
social_data Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
thirdparty Bug 15260: Modify next/prev_open_day 2019-10-31 11:52:26 +00:00
advance_notices.pl Bug 24268: Break assignment and warn into separate actions 2019-12-20 12:06:00 +00:00
automatic_item_modification_by_age.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
automatic_renewals.pl Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
build_browser_and_cloud.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cart_to_shelf.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url-quick.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cleanup_database.pl Bug 24114: (QA follow-up) Fix counts for lock, anonymize and delete 2020-02-24 13:17:39 +00:00
cloud-kw.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cloud-sample.conf
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
create_koc_db.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
crontab.example Bug 24526: Add the confirm flag to the cronjob files 2020-02-10 10:13:35 +00:00
delete_items.pl Bug 23463: Remove DelItemCheck and ItemSafeToDelete 2020-03-23 09:26:31 +00:00
delete_patrons.pl Bug 18414: Allow to use other select criteria with delete_patrons.pl 2020-03-24 10:42:18 +00:00
delete_records_via_leader.pl Bug 24324: Resolve error with delete_records_via_leader.pl 2020-03-24 08:03:30 +00:00
edi_cron.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
fines.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
gather_print_notices.pl Bug 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00:00
import_webservice_batch.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
longoverdue.pl Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
membership_expiry.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
merge_authorities.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
notice_unprocessed_suggestions.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
overdue_notices.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
patron_emailer.pl Bug 22755: Fix pod in patron_emailer.pl 2019-04-24 10:43:55 +00:00
printoverdues.sh Bug 10127 : Printoverdues.sh should tar only pdf files 2013-07-16 15:47:13 +00:00
process_message_queue.pl Bug 24183: Add before_send_messages hook 2020-04-06 10:43:25 +01:00
purge_suggestions.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
reconcile_balances.pl Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron 2020-04-14 08:21:31 +01:00
remove_temporary_edifiles.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
runreport.pl Bug 16219: (QA follow-up) Tiny regex change 2019-08-13 11:55:17 +01:00
serialsUpdate.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
share_usage_with_koha_community.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sitemap.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
staticfines.pl Bug 22589: Remove C4::Overdues::BorType 2020-03-24 10:57:55 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
update_patrons_category.pl Bug 17168: (follow-up) QA concerns and rebase issues 2019-10-25 13:20:22 +01:00
update_totalissues.pl Bug 24840: (follow-up) Catch some further cases of DateTime->now 2020-04-08 11:54:36 +01:00