Bugzilla – Attachment 55881 Details for
Bug 15902
Remove use of recordpayment in process_koc.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15902 [QA Followup] - Use Koha::Patrons instead of Koha::Borrowers
Bug-15902-QA-Followup---Use-KohaPatrons-instead-of.patch (text/plain), 1.26 KB, created by
Jonathan Druart
on 2016-09-28 11:11:19 UTC
(
hide
)
Description:
Bug 15902 [QA Followup] - Use Koha::Patrons instead of Koha::Borrowers
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-28 11:11:19 UTC
Size:
1.26 KB
patch
obsolete
>From dc1b5bad0fcc4cf32b14ee599833728d777d63ca Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 6 Sep 2016 14:05:11 +0000 >Subject: [PATCH] Bug 15902 [QA Followup] - Use Koha::Patrons instead of > Koha::Borrowers > >Since the initial submission of this patch, the module Koha::Borrowers >has been moved to Koha::Patrons. This patch changes the call from >Koha::Borrowers to Koha::Patrons. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > offline_circ/process_koc.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/offline_circ/process_koc.pl b/offline_circ/process_koc.pl >index 1875166..f959d6f 100755 >--- a/offline_circ/process_koc.pl >+++ b/offline_circ/process_koc.pl >@@ -37,6 +37,7 @@ use C4::Stats; > use C4::BackgroundJob; > use Koha::Upload; > use Koha::Account; >+use Koha::Patrons; > > use Date::Calc qw( Add_Delta_Days Date_to_Days ); > >@@ -364,7 +365,7 @@ sub kocMakePayment { > my $cardnumber = $circ->{cardnumber}; > my $amount = $circ->{amount}; > >- my $patron = Koha::Borrowers->find( { cardnumber => $cardnumber } ); >+ my $patron = Koha::Patrons->find( { cardnumber => $cardnumber } ); > > Koha::Account->new( { patron_id => $patron->id } ) > ->pay( { amount => $amount } ); >-- >2.8.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 15902
:
48339
|
52144
|
54748
|
55260
|
55875
|
55876
|
55880
| 55881