Bugzilla – Attachment 99279 Details for
Bug 24637
Pay selected & Pay amount does not log branchcode in 19.05
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24637: Add brancode in all pay circumstances
Bug-24637-Add-brancode-in-all-pay-circumstances.patch (text/plain), 1.77 KB, created by
Benjamin Daeuber
on 2020-02-19 21:08:59 UTC
(
hide
)
Description:
Bug 24637: Add brancode in all pay circumstances
Filename:
MIME Type:
Creator:
Benjamin Daeuber
Created:
2020-02-19 21:08:59 UTC
Size:
1.77 KB
patch
obsolete
>From 00731760bf18788942319d687957656e9f00ebd5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 11 Feb 2020 22:56:53 +0000 >Subject: [PATCH] Bug 24637: Add brancode in all pay circumstances > >To TEST: >1. Have some fines. Pay them using the Pay Amount or Pay Selected buttons. >2. SELECT branchcode FROM accountlines where borrowernumber = '{borrowernumber}'; >3. See that branchcode is NULL >4. Apply patch and restart_all >5. Make a partial payment using both the Pay select and Pay amount buttons. >6. SELECT branchcode FROM accountlines where borrowernumber = '{borrowernumber}'; >7. Now you should see the branchcodes in the table and no NULL values. > >Signed-off-by: Benjamin Daeuber <bdaeuber@fargolibrary.org> >--- > members/paycollect.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/members/paycollect.pl b/members/paycollect.pl >index e11b37e660..0f9e53fae6 100755 >--- a/members/paycollect.pl >+++ b/members/paycollect.pl >@@ -158,6 +158,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { > { > type => $type, > amount => $total_paid, >+ library_id => $branch, > lines => \@lines, > note => $note, > interface => C4::Context->interface, >@@ -170,6 +171,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { > Koha::Account->new( { patron_id => $borrowernumber } )->pay( > { > amount => $total_paid, >+ library_id => $branch, > note => $note, > payment_type => $payment_type, > interface => C4::Context->interface >-- >2.11.0
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 24637
:
98734
|
99279
|
99285