From ead3223e0615304aa87654d63d352d61145fb32a 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. Signed-off-by: Jared Camins-Esakov --- members/pay.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/pay.pl b/members/pay.pl index 17edb7465a..04ba19c01a 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -180,7 +180,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