From 3fcaba85c3f4b7af145c1c2ff6a169f5c115b57d 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. --- members/pay.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/members/pay.pl b/members/pay.pl index 9343c90..3aecbe6 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 ); } -- 1.7.2.5