[Koha-bugs] [Bug 27049] Add a script to bulk writeoff debts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 13 19:39:39 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27049

--- Comment #5 from Lucas Gass <lucas at bywatersolutions.com> ---
Martin,

When I run the script I get the following error and no debts are written off:

Can't locate object method "search" via package "Koha::Account::Lines" (perhaps
you forgot to load "Koha::Account::Lines"?) at
/kohadevbox/koha/misc/cronjobs/writeoff_debts.pl line 49.


If I add 'use Koha::Account::Lines;' to the script and restart_all I can make
it work. Is this missing or am I doing something wrong?

I am running this in my Koha testing docker like so:


perl /kohadevbox/koha/misc/cronjobs/writeoff_debts.pl --confirm

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list