Bugzilla – Attachment 180968 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.62 KB, created by
Martin Renvoize (ashimema)
on 2025-04-15 14:02:45 UTC
(
hide
)
Description:
Bug 35267: Migrate accounts_summary to printslip
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-04-15 14:02:45 UTC
Size:
2.62 KB
patch
obsolete
>From b616a83db7d0f63ec639ef0d5633233f1e7a3102 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. > >Sponsored-by: Open Fifth <https://openfifth.co.uk> >--- > .../intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- > members/printslip.pl | 9 +++++++++ > 2 files changed, 10 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 c40f34ebceb..21bfa1073d1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -43,7 +43,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 c801fe713a1..9b8a9df56a6 100755 >--- a/members/printslip.pl >+++ b/members/printslip.pl >@@ -95,6 +95,15 @@ 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.49.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 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
|
175531
|
175532
|
175533
|
175534
|
175535
|
175536
|
175706
|
175707
|
175708
|
175709
|
175710
|
175711
|
175715
|
175716
|
175717
|
175718
|
175719
|
175721
|
175723
|
175724
|
175725
|
175726
|
175727
|
175728
|
175729
|
178485
|
178486
|
178487
|
178488
|
178489
|
178490
|
178491
|
180574
|
180575
|
180576
|
180577
|
180578
|
180579
|
180580
|
180963
|
180964
|
180965
|
180966
|
180967
| 180968 |
180969
|
180970
|
180971