Bug 7597 - Part 3 - fines not recording the right info in the stats table
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 28 Feb 2012 14:34:59 +0000 (09:34 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 16:13:37 +0000 (17:13 +0100)
This commit fixes writeoff_all to write off only the amount outstanding
for each fine being written off, rather than the original amount owed.

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 9343c90..3aecbe6 100755 (executable)
@@ -182,7 +182,7 @@ sub writeoff_all {
 
             #    my $borrowernum    = $input->param("borrowernumber$value");
             my $itemno    = $input->param("itemnumber$value");
-            my $amount    = $input->param("amount$value");
+            my $amount    = $input->param("amountoutstanding$value");
             my $accountno = $input->param("accountno$value");
             WriteOff( $borrowernumber, $accountno, $itemno, $accounttype, $amount, $branch );
         }