Bugzilla – Attachment 92977 Details for
Bug 22837
Koha::Account::Line->apply should not require a 'set' of debits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22837: Update apply to accept an arrayref
Bug-22837-Update-apply-to-accept-an-arrayref.patch (text/plain), 1.02 KB, created by
Liz Rea
on 2019-09-19 18:54:15 UTC
(
hide
)
Description:
Bug 22837: Update apply to accept an arrayref
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-09-19 18:54:15 UTC
Size:
1.02 KB
patch
obsolete
>From c1ded7d0f2a6bed22f968525fac2f124730e36e3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 3 May 2019 12:59:16 +0100 >Subject: [PATCH] Bug 22837: Update apply to accept an arrayref > >This patch update the signature of Koha::Account::Line->apply to accept >an arrayref of debits to apply against a credit instead of requireing a >Koha::Objects set. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > Koha/Account/Line.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index f4f9498ee1..f745dc13e2 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -204,7 +204,7 @@ sub apply { > my $schema = Koha::Database->new->schema; > > $schema->txn_do( sub { >- while ( my $debit = $debits->next ) { >+ for my $debit ( @{$debits} ) { > > unless ( $debit->is_debit ) { > Koha::Exceptions::Account::IsNotDebit->throw( >-- >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 22837
:
89314
|
89315
|
89316
|
89317
|
89468
|
89469
|
92972
|
92973
|
92977
|
92978
|
92979
|
92980
|
92981
|
92982
|
92983
|
92984