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.
# 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 );
}