Bugzilla – Attachment 172462 Details for
Bug 35267
Clarify CSS options for Notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35267: Migrate accounts_summary to printslip
Bug-35267-Migrate-accountssummary-to-printslip.patch (text/plain), 2.58 KB, created by
Martin Renvoize (ashimema)
on 2024-10-07 13:58:16 UTC
(
hide
)
Description:
Bug 35267: Migrate accounts_summary to printslip
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-07 13:58:16 UTC
Size:
2.58 KB
patch
obsolete
>From 96e15b7863fddb52fcef499997f812ef900044d5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 7 Oct 2024 12:11:28 +0100 >Subject: [PATCH] Bug 35267: Migrate accounts_summary to printslip > >This patch migrates the 'slip' printing for the ACCOUNTS_SUMMARY slip to >circ/printslip as this is a slip rather than a notice. >--- > .../prog/en/includes/members-toolbar.inc | 2 +- > members/printslip.pl | 11 +++++++++++ > 2 files changed, 12 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >index 3d6ea935f9c..a51a8020776 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -26,7 +26,7 @@ > <li><a class="dropdown-item printslip" data-code="issueslip" href="#">Print slip</a></li> > <li><a class="dropdown-item printslip" data-code="issueqslip" href="#">Print quick slip</a></li> > [% IF patron.account_balance != 0 %] >- <li><a class="dropdown-item" id="printfineslip" target="_blank" href="/cgi-bin/koha/members/printnotice.pl?notice=ACCOUNTS_SUMMARY&borrowernumber=[% patron.borrowernumber | uri %]">Print account balance</a></li> >+ <li><a class="dropdown-item printslip" data-code="accounts_summary" id="printfineslip" href="#">Print account balance</a></li> > [% END %] > [% IF patron.has_overdues %] > <li><a class="dropdown-item" id="print_overdues" href="#">Print overdues</a></li> >diff --git a/members/printslip.pl b/members/printslip.pl >index 243285faf18..f5102025c4e 100755 >--- a/members/printslip.pl >+++ b/members/printslip.pl >@@ -93,6 +93,17 @@ if ( $print eq 'checkinslip' ) { > $letter = IssueSlip( $session->param('branch') || $branch, $borrowernumber, 0 ); > } elsif ( $print eq 'issueqslip' ) { > $letter = IssueSlip( $session->param('branch') || $branch, $borrowernumber, 1 ); >+} elsif ( $print eq 'accounts_summary' ) { >+ $letter = C4::Letters::GetPreparedLetter( >+ module => 'members', >+ letter_code => $print, >+ branchcode => $branch, >+ lang => $patron->lang, >+ tables => { >+ borrowers => $patron->borrowernumber >+ }, >+ message_transport_type => 'print', >+ ); > } else { > $letter = C4::Letters::GetPreparedLetter( > module => 'patron_slip', >-- >2.46.2
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 35267
:
172414
|
172415
|
172416
|
172417
|
172418
|
172457
|
172458
|
172459
|
172460
|
172461
|
172462
|
172463
|
172474
|
172475
|
172476
|
172477
|
172478
|
172479
|
172480
|
172485
|
172486
|
172487
|
172488
|
172489
|
172490
|
172491