View | Details | Raw Unified | Return to bug 32986
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-4 / +3 lines)
Lines 32-41 Link Here
32
                    <li><a id="print_overdues" href="#">Print overdues</a></li>
32
                    <li><a id="print_overdues" href="#">Print overdues</a></li>
33
                [% END %]
33
                [% END %]
34
                <li><a class="printslip" data-code="checkinslip" href="#">Print checkin slip</a></li>
34
                <li><a class="printslip" data-code="checkinslip" href="#">Print checkin slip</a></li>
35
		[% FOREACH notice IN Notices.GetTemplates( 'patron_slip' ) %]
35
                [% FOREACH notice IN Notices.GetTemplates( 'patron_slip' ) %]
36
                     <li><a class="printslip" data-code="[% notice.code %]" href="#">Print [% notice.name %] slip</a></li>
36
                    <li><a class="printslip" data-code="[% notice.code | html %]" href="#">Print [% notice.name | html %] slip</a></li>
37
		[% END %]
37
                [% END %]
38
39
            </ul>
38
            </ul>
40
    </div>
39
    </div>
41
    [% END %]
40
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +1 lines)
Lines 233-239 Link Here
233
                                                    [% CASE 'claimissues' %]<span>Claim serial issue</span>
233
                                                    [% CASE 'claimissues' %]<span>Claim serial issue</span>
234
                                                    [% CASE 'reserves' %]<span>Holds</span>
234
                                                    [% CASE 'reserves' %]<span>Holds</span>
235
                                                    [% CASE 'ill' %]<span>Interlibrary loans</span>
235
                                                    [% CASE 'ill' %]<span>Interlibrary loans</span>
236
						    [% CASE 'members' %]<span>Patrons</span>
236
                                                    [% CASE 'members' %]<span>Patrons</span>
237
                                                    [% CASE 'patron_slip' %]<span>Patrons toolbar (slip)</span>
237
                                                    [% CASE 'patron_slip' %]<span>Patrons toolbar (slip)</span>
238
                                                    [% CASE 'serial' %]<span>Serials (new issue)</span>
238
                                                    [% CASE 'serial' %]<span>Serials (new issue)</span>
239
                                                    [% CASE 'suggestions' %]<span>Suggestions</span>
239
                                                    [% CASE 'suggestions' %]<span>Suggestions</span>
(-)a/members/printslip.pl (-18 / +23 lines)
Lines 68-82 output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log Link Here
68
my $branch=C4::Context->userenv->{'branch'};
68
my $branch=C4::Context->userenv->{'branch'};
69
my ($letter, $slip, $is_html);
69
my ($letter, $slip, $is_html);
70
if ( $print eq 'checkinslip' ) {
70
if ( $print eq 'checkinslip' ) {
71
    my $checkinslip_branch = $session->param('branch') ? $session->param('branch') : $branch;
71
    my $checkinslip_branch =
72
      $session->param('branch') ? $session->param('branch') : $branch;
72
73
73
    # get today's checkins
74
    # get today's checkins
74
    my @issue_ids = $patron->old_checkouts->search( { branchcode => $checkinslip_branch } )
75
    my @issue_ids =
76
      $patron->old_checkouts->search( { branchcode => $checkinslip_branch } )
75
      ->filter_by_todays_checkins->get_column('issue_id');
77
      ->filter_by_todays_checkins->get_column('issue_id');
76
78
77
    my %loops = (
79
    my %loops = ( old_issues => \@issue_ids, );
78
        old_issues => \@issue_ids,
79
    );
80
80
81
    $letter = C4::Letters::GetPreparedLetter(
81
    $letter = C4::Letters::GetPreparedLetter(
82
        module      => 'circulation',
82
        module      => 'circulation',
Lines 91-114 if ( $print eq 'checkinslip' ) { Link Here
91
        message_transport_type => 'print'
91
        message_transport_type => 'print'
92
    );
92
    );
93
93
94
} elsif ( $print eq 'issueslip' ){
94
}
95
    $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, 0);
95
elsif ( $print eq 'issueslip' ) {
96
} elsif ( $print eq 'issueqslip' ){
96
    $letter =
97
    $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, 1);
97
      IssueSlip( $session->param('branch') || $branch, $borrowernumber, 0 );
98
} else {
98
}
99
elsif ( $print eq 'issueqslip' ) {
100
    $letter =
101
      IssueSlip( $session->param('branch') || $branch, $borrowernumber, 1 );
102
}
103
else {
99
    $letter = C4::Letters::GetPreparedLetter(
104
    $letter = C4::Letters::GetPreparedLetter(
100
        module => 'patron_slip',
105
        module      => 'patron_slip',
101
	letter_code => $print,
106
        letter_code => $print,
102
	branchcode => $branch,
107
        branchcode  => $branch,
103
	lang => $patron->lang,
108
        lang        => $patron->lang,
104
	tables => {
109
        tables      => {
105
	    branches => $branch,
110
            branches  => $branch,
106
	    borrowers => $borrowernumber
111
            borrowers => $borrowernumber
107
        },
112
        },
108
        message_transport_type => 'print'
113
        message_transport_type => 'print'
109
    );
114
    );
110
}
115
}
111
116
117
112
$slip    = $letter->{content};
118
$slip    = $letter->{content};
113
$is_html = $letter->{is_html};
119
$is_html = $letter->{is_html};
114
120
115
- 

Return to bug 32986