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 <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.
This commit is contained in:
Kyle Hall 2012-02-28 09:34:59 -05:00 committed by Paul Poulain
parent db946ffd58
commit 360e2f82e7

View file

@ -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 );
}