C4::Accounts - Functions for dealing with Koha accounts
The functions in this module deal with the monetary aspect of Koha, including looking up and modifying the amount of money owed by a patron.
In a default install of Koha the following lost values are set 1 = Lost 2 = Long overdue 3 = Lost and paid for
FIXME: itemlost should be set to 3 after payment is made, should be a warning to the interface that a charge has been added FIXME : if no replacement price, borrower just doesn't get charged?
&manualinvoice($borrowernumber, $itemnumber, $description, $type, $amount, $note);
This function is now deprecated and not used anywhere within koha. It is due for complete removal in 19.11
purge_zero_balance_fees( $days );
Delete accountlines entries where amountoutstanding is 0 or NULL which are more than a given number of days old.
$days -- Zero balance fees older than $days days old will be deleted.
Warning: Because fines and payments are not linked in accountlines, it is possible for a fine to be deleted without the accompanying payment, or vise versa. This won't affect the account balance, but might be confusing to staff.