Bugzilla – Attachment 81351 Details for
Bug 20629
Remove ability to 'reverse' payments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20629: (follow-up) fix reverse_col value
Bug-20629-follow-up-fix-reversecol-value.patch (text/plain), 1.13 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-10-27 11:04:19 UTC
(
hide
)
Description:
Bug 20629: (follow-up) fix reverse_col value
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-10-27 11:04:19 UTC
Size:
1.13 KB
patch
obsolete
>From d36a9a7613b3c064bc352e1be3fe3b954bba94fe Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 15 Oct 2018 18:50:09 +0000 >Subject: [PATCH] Bug 20629: (follow-up) fix reverse_col value > >Before this patch the Void button didn't appear. >After this patch the Void button appears on payments. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > members/boraccount.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/members/boraccount.pl b/members/boraccount.pl >index 7f94bf2e45..9677819661 100755 >--- a/members/boraccount.pl >+++ b/members/boraccount.pl >@@ -79,7 +79,9 @@ if($total <= 0){ > $totalcredit = 1; > } > >-my $reverse_col = 0; # Flag whether we need to show the reverse column >+my $reverse_col = ( Koha::Account::Lines->search( >+ { borrowernumber => $patron->borrowernumber }, >+ { where => { amount => { '<=', 0 } } } )->count > 0 ) ? 1 : 0; > > if (C4::Context->preference('ExtendedPatronAttributes')) { > my $attributes = GetBorrowerAttributes($borrowernumber); >-- >2.19.1
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 20629
:
74935
|
80590
|
80620
|
80621
|
80622
|
80629
|
80630
|
80631
|
80632
|
80633
|
80634
|
80635
|
80636
|
80692
|
80693
|
81311
|
81312
|
81313
|
81314
|
81315
|
81349
|
81350
| 81351 |
81352
|
81353