From 5954631aeaf261a9bbbb44a7a7fcae225031eb24 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 7 Sep 2012 11:44:22 -0400 Subject: [PATCH] Bug 8739 - Partial Fine Payments Saving Amount Paid Incorrectly Signed-off-by: Owen Leonard Confirmed using test plan that the display is corrected. Signed-off-by: Paul Poulain --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index f7adca14b6..f76ae01d6c 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -760,7 +760,7 @@ sub makepartialpayment { . 'description, accounttype, amountoutstanding, itemnumber, manager_id) ' . ' VALUES (?, ?, now(), ?, ?, ?, 0, ?, ?)'; - $dbh->do( $insert, undef, $borrowernumber, $nextaccntno, $amount, + $dbh->do( $insert, undef, $borrowernumber, $nextaccntno, 0 - $amount, "Payment, thanks - $user", 'Pay', $data->{'itemnumber'}, $manager_id); UpdateStats( $user, 'payment', $amount, '', '', '', $borrowernumber, $accountno ); -- 2.39.5