Bugzilla – Attachment 52134 Details for
Bug 15908
Remove use of recordpayment_selectaccts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15908 - Remove use of recordpayment_selectaccts
Bug-15908---Remove-use-of-recordpaymentselectaccts.patch (text/plain), 2.49 KB, created by
Kyle M Hall (khall)
on 2016-06-07 14:48:43 UTC
(
hide
)
Description:
Bug 15908 - Remove use of recordpayment_selectaccts
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-06-07 14:48:43 UTC
Size:
2.49 KB
patch
obsolete
>From 1e466d61f6db97899e4ab0bc0f53fec0e50e3da3 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 24 Feb 2016 16:24:04 +0000 >Subject: [PATCH] Bug 15908 - Remove use of recordpayment_selectaccts > >Test Plan: >1) Apply this patch >2) prove t/db_dependent/Accounts.t >3) Test fine payment via the "Pay selected" button >--- > C4/Accounts.pm | 42 ------------------------------------------ > t/db_dependent/Accounts.t | 1 - > 2 files changed, 43 deletions(-) > >diff --git a/C4/Accounts.pm b/C4/Accounts.pm >index c75406b..4cf9bfb 100644 >--- a/C4/Accounts.pm >+++ b/C4/Accounts.pm >@@ -45,7 +45,6 @@ BEGIN { > &getrefunds > &chargelostitem > &ReversePayment >- &recordpayment_selectaccts > &WriteOffFee > &purge_zero_balance_fees > ); >@@ -406,47 +405,6 @@ sub ReversePayment { > > } > >-=head2 recordpayment_selectaccts >- >- recordpayment_selectaccts($borrowernumber, $payment,$accts); >- >-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<$accts> is an array ref to a list of >-accountnos which the payment can be recorded against >- >-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_selectaccts { >- my ( $borrowernumber, $amount, $accts, $note ) = @_; >- >- my @lines = Koha::Account::Lines->search( >- { >- borrowernumber => $borrowernumber, >- amountoutstanding => { '<>' => 0 }, >- accountno => { 'IN' => $accts }, >- }, >- { order_by => 'date' } >- ); >- >- return Koha::Account->new( >- { >- patron_id => $borrowernumber, >- } >- )->pay( >- { >- amount => $amount, >- lines => \@lines, >- note => $note, >- } >- ); >-} >- > =head2 WriteOffFee > > WriteOffFee( $borrowernumber, $accountline_id, $itemnum, $accounttype, $amount, $branch, $payment_note ); >diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t >index 730df75..a8e034b 100644 >--- a/t/db_dependent/Accounts.t >+++ b/t/db_dependent/Accounts.t >@@ -45,7 +45,6 @@ can_ok( 'C4::Accounts', > getcredits > getrefunds > ReversePayment >- recordpayment_selectaccts > WriteOffFee > purge_zero_balance_fees ) > ); >-- >1.7.10.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 15908
:
48352
|
52134
|
52152
|
58752
|
58754
|
58755
|
58767