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

(-)a/C4/Letters.pm (+6 lines)
Lines 1545-1550 sub _get_tt_params { Link Here
1545
            plural   => 'checkouts',
1545
            plural   => 'checkouts',
1546
            fk       => 'itemnumber',
1546
            fk       => 'itemnumber',
1547
        },
1547
        },
1548
        old_issues => {
1549
            module   => 'Koha::Old::Checkouts',
1550
            singular => 'old_checkout',
1551
            plural   => 'old_checkouts',
1552
            fk       => 'itemnumber',
1553
        },
1548
        borrower_modifications => {
1554
        borrower_modifications => {
1549
            module   => 'Koha::Patron::Modifications',
1555
            module   => 'Koha::Patron::Modifications',
1550
            singular => 'patron_modification',
1556
            singular => 'patron_modification',
(-)a/t/db_dependent/Letters/TemplateToolkit.t (-7 / +6 lines)
Lines 417-429 The following items have been checked out: Link Here
417
Thank you for visiting <<branches.branchname>>.
417
Thank you for visiting <<branches.branchname>>.
418
|;
418
|;
419
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
419
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
420
        my $checkin_template = q|
420
        my $checkin_template = q[
421
The following items have been checkin out:
421
The following items have been checkin out:
422
----
422
----
423
<<biblio.title>>
423
<<biblio.title>> was due on <<old_issues.date_due | dateonly>>
424
----
424
----
425
Thank you for visiting <<branches.branchname>>.
425
Thank you for visiting <<branches.branchname>>.
426
|;
426
];
427
        reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
427
        reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
428
428
429
        C4::Circulation::AddIssue( $patron, $item1->{barcode} );
429
        C4::Circulation::AddIssue( $patron, $item1->{barcode} );
Lines 447-459 The following items have been checked out: Link Here
447
Thank you for visiting [% branch.branchname %].
447
Thank you for visiting [% branch.branchname %].
448
|;
448
|;
449
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
449
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
450
        $checkin_template = q|
450
        $checkin_template = q[
451
The following items have been checkin out:
451
The following items have been checkin out:
452
----
452
----
453
[% biblio.title %]
453
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %]
454
----
454
----
455
Thank you for visiting [% branch.branchname %].
455
Thank you for visiting [% branch.branchname %].
456
|;
456
];
457
        reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
457
        reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
458
458
459
        C4::Circulation::AddIssue( $patron, $item1->{barcode} );
459
        C4::Circulation::AddIssue( $patron, $item1->{barcode} );
460
- 

Return to bug 17964