Bug 7597 - Part 1 - fines not recording the right info in the stats table

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.
This commit is contained in:
Kyle Hall 2012-02-28 08:47:43 -05:00 committed by Paul Poulain
parent ceb81cfc52
commit 870006e50f

View file

@ -89,7 +89,7 @@ if ($writeoff_all) {
my $accountno = $input->param('accountno'); my $accountno = $input->param('accountno');
my $itemno = $input->param('itemnumber'); my $itemno = $input->param('itemnumber');
my $account_type = $input->param('accounttype'); my $account_type = $input->param('accounttype');
my $amount = $input->param('amount'); my $amount = $input->param('amountoutstanding');
writeoff( $accountno, $itemno, $account_type, $amount ); writeoff( $accountno, $itemno, $account_type, $amount );
} }