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

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

Return to bug 17964