Bug 7597 - Part 1 - fines not recording the right info in the stats table
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 28 Feb 2012 13:47:43 +0000 (08:47 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 16:13:31 +0000 (17:13 +0100)
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.

members/pay.pl

index e3377bf..9533922 100755 (executable)
@@ -89,7 +89,7 @@ if ($writeoff_all) {
     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 );
 }