From 360e2f82e78d9205038f77a34a12b48c9f1630af Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 28 Feb 2012 09:34:59 -0500 Subject: [PATCH] Bug 7597 - Part 3 - fines not recording the right info in the stats table 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 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/pay.pl b/members/pay.pl index 9343c90ffd..3aecbe6bd5 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -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 ); } -- 2.39.5