Bugzilla – Attachment 83242 Details for
Bug 19489
Detailed description of charges on Accounting tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19489: Simplify the code a bit
Bug-19489-Simplify-the-code-a-bit.patch (text/plain), 1.23 KB, created by
Jonathan Druart
on 2018-12-14 19:19:23 UTC
(
hide
)
Description:
Bug 19489: Simplify the code a bit
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-14 19:19:23 UTC
Size:
1.23 KB
patch
obsolete
>From d6686dcf7514d1bffab5547ac088e8af2033e7c0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 14 Dec 2018 16:12:17 -0300 >Subject: [PATCH] Bug 19489: Simplify the code a bit > >--- > members/printinvoice.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/members/printinvoice.pl b/members/printinvoice.pl >index 25b3d7e026..5f8e22a7cc 100755 >--- a/members/printinvoice.pl >+++ b/members/printinvoice.pl >@@ -57,8 +57,10 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log > my $total = $patron->account->balance; > my $accountline_object = Koha::Account::Lines->find($accountlines_id); > my $accountline = $accountline_object->unblessed; >-$accountline->{'item'} = $accountline->{itemnumber} ? $accountline_object->item : "" ; >-$accountline->{'issue'} = $accountline->{issue_id} ? $accountline_object->issue : "" ; >+$accountline->{item} = $accountline_object->item || "" ; >+$accountline->{issue} = $accountline_object->issue || ""; >+#$accountline->{'item'} = $accountline->{itemnumber} ? $accountline_object->item : "" ; >+#$accountline->{'issue'} = $accountline->{issue_id} ? $accountline_object->issue : "" ; > > my $totalcredit; > if ( $total <= 0 ) { >-- >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 19489
:
81956
|
81989
|
81991
|
82519
|
82520
|
82614
|
82615
|
82846
|
83109
|
83110
|
83242
|
83276
|
83277
|
83299
|
83300
|
83301
|
83618
|
83619
|
83620
|
85236
|
85237
|
85275
|
85315
|
85668
|
85669
|
85670
|
85671
|
85672
|
85673
|
85674
|
85675
|
85731
|
85732
|
85733
|
85734
|
85735
|
85736
|
85737
|
85738