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

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

Return to bug 17964