Lines 337-343
Your library.
Link Here
|
337 |
|; |
337 |
|; |
338 |
my $tt_letter = process_letter( { template => $tt_template, %$params }); |
338 |
my $tt_letter = process_letter( { template => $tt_template, %$params }); |
339 |
|
339 |
|
340 |
is( $tt_letter->{content}, $letter->{content}, ); |
340 |
is( $tt_letter->{content}, $letter->{content}, 'Verified letter content' ); |
341 |
}; |
341 |
}; |
342 |
|
342 |
|
343 |
subtest 'AR_*' => sub { |
343 |
subtest 'AR_*' => sub { |
Lines 417-423
Thank you for visiting <<branches.branchname>>.
Link Here
|
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 checked out: |
421 |
---- |
421 |
---- |
422 |
<<biblio.title>> was due on <<old_issues.date_due | dateonly>> |
422 |
<<biblio.title>> was due on <<old_issues.date_due | dateonly>> |
423 |
---- |
423 |
---- |
Lines 447-453
Thank you for visiting [% branch.branchname %].
Link Here
|
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 checked out: |
451 |
---- |
451 |
---- |
452 |
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %] |
452 |
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %] |
453 |
---- |
453 |
---- |
Lines 465-474
Thank you for visiting [% branch.branchname %].
Link Here
|
465 |
AddReturn( $item2->{barcode} ); |
465 |
AddReturn( $item2->{barcode} ); |
466 |
my $second_checkin_tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
466 |
my $second_checkin_tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
467 |
|
467 |
|
468 |
is( $first_checkout_tt_letter->content, $first_checkout_letter->content, ); |
468 |
is( $first_checkout_tt_letter->content, $first_checkout_letter->content, 'Verify first checkout letter' ); |
469 |
is( $second_checkout_tt_letter->content, $second_checkout_letter->content, ); |
469 |
is( $second_checkout_tt_letter->content, $second_checkout_letter->content, 'Verify second checkout letter' ); |
470 |
is( $first_checkin_tt_letter->content, $first_checkin_letter->content, ); |
470 |
is( $first_checkin_tt_letter->content, $first_checkin_letter->content, 'Verify first checkin letter' ); |
471 |
is( $second_checkin_tt_letter->content, $second_checkin_letter->content, ); |
471 |
is( $second_checkin_tt_letter->content, $second_checkin_letter->content, 'Verify second checkin letter' ); |
472 |
|
472 |
|
473 |
}; |
473 |
}; |
474 |
}; |
474 |
}; |
475 |
- |
|
|