Bugzilla – Attachment 57169 Details for
Bug 15906
Remove use of makepayment in paycollect.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15906: [QA Follow-up] Correct a partial payment
Bug-15906-QA-Follow-up-Correct-a-partial-payment.patch (text/plain), 1.47 KB, created by
Marcel de Rooy
on 2016-11-04 09:46:22 UTC
(
hide
)
Description:
Bug 15906: [QA Follow-up] Correct a partial payment
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-11-04 09:46:22 UTC
Size:
1.47 KB
patch
obsolete
>From 060ebe2d480e36bb98b54d18fa4550e6f5594063 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 4 Nov 2016 09:46:08 +0100 >Subject: [PATCH] Bug 15906: [QA Follow-up] Correct a partial payment >Content-Type: text/plain; charset=utf-8 > >The amount in accountlines should be saved as a negative amount, but >amount outstanding is correct. > >Note: This routine is actually used only once (in paycollect.pl). And is >only cosmetically tested in Accounts.t. > >Test plan: >[1] Create a manual invoice, Fine, say 20. >[2] Click on the Pay button next to this fine, and pay 1. >[3] Pay again, using 'Pay amount' button, and pay 2. >[4] Pay again, using 'Pay' on the same line, the full remaining amount. >[5] Verify that you see -1, -2 and -17 on the Accounts tab. >[6] Run t/db_dependent/Accounts.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Accounts.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Accounts.pm b/C4/Accounts.pm >index e49becb..f65745e 100644 >--- a/C4/Accounts.pm >+++ b/C4/Accounts.pm >@@ -607,7 +607,7 @@ sub makepartialpayment { > . 'description, accounttype, amountoutstanding, itemnumber, manager_id, note) ' > . ' VALUES (?, ?, now(), ?, ?, ?, 0, ?, ?, ?)'; > >- $dbh->do( $insert, undef, $borrowernumber, $nextaccntno, $amount, >+ $dbh->do( $insert, undef, $borrowernumber, $nextaccntno, -$amount, > '', 'Pay', $data->{'itemnumber'}, $manager_id, $payment_note); > > UpdateStats({ >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15906
:
48347
|
52135
|
52148
|
54172
|
57168
| 57169