From a42656ce1bc9b393dbf527d1c8641611121632fa 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 Signed-off-by: Chris Cormack --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 4bb309efe9..cc3cad8b2c 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -762,7 +762,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