Koha was writing off the value of accountlines.amount rather
than the value of accountlines.ammountoutstanding.
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Tested all three patches together and was able to write off single
and multiple fines and the data was correct in the stats table.
my $accountno = $input->param('accountno');
my $itemno = $input->param('itemnumber');
my $account_type = $input->param('accounttype');
- my $amount = $input->param('amount');
+ my $amount = $input->param('amountoutstanding');
writeoff( $accountno, $itemno, $account_type, $amount );
}