Bugzilla – Attachment 91248 Details for
Bug 21801
paycollect.pl should pass library_id when adding accountlines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21801: Make paycollect.pl pass library_id when calling ->pay
Bug-21801-Make-paycollectpl-pass-libraryid-when-ca.patch (text/plain), 1.79 KB, created by
Josef Moravec
on 2019-07-03 21:33:54 UTC
(
hide
)
Description:
Bug 21801: Make paycollect.pl pass library_id when calling ->pay
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-07-03 21:33:54 UTC
Size:
1.79 KB
patch
obsolete
>From b3864b042e70fe2ef5e0551a1a2c5e18ee705dd3 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 9 Nov 2018 11:33:59 -0300 >Subject: [PATCH] Bug 21801: Make paycollect.pl pass library_id when calling > ->pay > >This patch makes paycollect store the branchcode of the current library >when payments are done. > >- Try all the possible options, specially selecting things to pay for (not >using the individual buttons). >- Check on the DB, that the accountlines for the patron you're playin >with have the branchcode stored correctly in all cases: > $ sudo koha-mysql kohadev > > SELECT * FROM accountlines WHERE borrowernumber=<the_bn>; >=> SUCCESS: Things are as expected >- SIgn off :-D > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > members/paycollect.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/members/paycollect.pl b/members/paycollect.pl >index f105c8e398..eb7f892a60 100755 >--- a/members/paycollect.pl >+++ b/members/paycollect.pl >@@ -157,6 +157,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, >@@ -169,6 +170,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 21801
:
82172
|
82173
|
91199
|
91200
| 91248 |
91249