Bugzilla – Attachment 48344 Details for
Bug 15899
Remove the use of recordpayment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15899 - Remove C4::Accounts::recordpayment
Bug-15899---Remove-C4Accountsrecordpayment.patch (text/plain), 1.69 KB, created by
Kyle M Hall (khall)
on 2016-02-24 15:43:19 UTC
(
hide
)
Description:
Bug 15899 - Remove C4::Accounts::recordpayment
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-24 15:43:19 UTC
Size:
1.69 KB
patch
obsolete
>From 49adb6d68e5b453ffc1ee80cd2758e775b48922c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 24 Feb 2016 15:05:01 +0000 >Subject: [PATCH] Bug 15899 - Remove C4::Accounts::recordpayment > >Test Plan: >1) Apply this patch >2) prove t/db_dependent/Accounts.t >3) git grep recordpayment should show no calls to the recordpayment sub >--- > C4/Accounts.pm | 27 --------------------------- > 1 file changed, 27 deletions(-) > >diff --git a/C4/Accounts.pm b/C4/Accounts.pm >index 1304e15..7f68249 100644 >--- a/C4/Accounts.pm >+++ b/C4/Accounts.pm >@@ -70,33 +70,6 @@ patron. > > =head1 FUNCTIONS > >-=head2 recordpayment >- >- &recordpayment($borrowernumber, $payment, $sip_paytype, $note); >- >-Record payment by a patron. C<$borrowernumber> is the patron's >-borrower number. C<$payment> is a floating-point number, giving the >-amount that was paid. C<$sip_paytype> is an optional flag to indicate this >-payment was made over a SIP2 interface, rather than the staff client. The >-value passed is the SIP2 payment type value (message 37, characters 21-22) >- >-Amounts owed are paid off oldest first. That is, if the patron has a >-$1 fine from Feb. 1, another $1 fine from Mar. 1, and makes a payment >-of $1.50, then the oldest fine will be paid off in full, and $0.50 >-will be credited to the next one. >- >-=cut >- >-#' >-sub recordpayment { >- >- #here we update the account lines >- my ( $borrowernumber, $data, $sip_paytype, $payment_note ) = @_; >- >- return Koha::Account->new( { patron_id => $borrowernumber } ) >- ->pay( { amount => $data, sip => $sip_paytype, note => $payment_note } ); >-} >- > =head2 makepayment > > &makepayment($accountlines_id, $borrowernumber, $acctnumber, $amount, $branchcode); >-- >2.1.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 15899
:
48343
|
48344
|
48345
|
52137
|
52146
|
52147
|
54749
|
54750
|
55878
|
55879