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> Signed-off-by: Marion Durand <marion.durand@biblibre.com> Signed-off-by: Thomas Klausner <domm@plix.at> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
ca0195e448
commit
38dcf70e5c
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue