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

(-)a/C4/SIP/ILS.pm (-1 / +2 lines)
Lines 7-12 package C4::SIP::ILS; Link Here
7
use warnings;
7
use warnings;
8
use strict;
8
use strict;
9
use C4::SIP::Sip qw( siplog );
9
use C4::SIP::Sip qw( siplog );
10
use Koha::DateUtils qw( dt_from_string output_pref );
10
use Data::Dumper;
11
use Data::Dumper;
11
12
12
use C4::SIP::ILS::Item;
13
use C4::SIP::ILS::Item;
Lines 137-143 sub checkout { Link Here
137
        if ($patron->debarred) {
138
        if ($patron->debarred) {
138
            $circ->screen_msg("Patron debarred");
139
            $circ->screen_msg("Patron debarred");
139
        } elsif ($patron->expired) {
140
        } elsif ($patron->expired) {
140
            $circ->screen_msg("Patron expired");
141
            $circ->screen_msg("Patron expired on " . output_pref({ dt => dt_from_string( $patron->dateexpiry_iso, 'iso' ), dateonly => 1 }));
141
        } elsif ($patron->fine_blocked) {
142
        } elsif ($patron->fine_blocked) {
142
            $circ->screen_msg("Patron has fines");
143
            $circ->screen_msg("Patron has fines");
143
        } else {
144
        } else {
(-)a/t/db_dependent/SIP/Transaction.t (-3 / +2 lines)
Lines 466-477 subtest do_checkout_with_patron_blocked => sub { Link Here
466
            class => 'Koha::Patrons',
466
            class => 'Koha::Patrons',
467
            value => {
467
            value => {
468
                branchcode => $library->branchcode,
468
                branchcode => $library->branchcode,
469
                dateexpiry => '2020/01/01',
469
                dateexpiry => '2020/01/03',
470
            }
470
            }
471
        }
471
        }
472
    );
472
    );
473
    my $circ = $ils->checkout($expired_patron->cardnumber, $item->barcode);
473
    my $circ = $ils->checkout($expired_patron->cardnumber, $item->barcode);
474
    is( $circ->{screen_msg}, 'Patron expired', "Got correct expired screen message" );
474
    is( $circ->{screen_msg}, 'Patron expired on 01/03/2020', "Got correct expired screen message" );
475
475
476
    my $fines_patron = $builder->build_object(
476
    my $fines_patron = $builder->build_object(
477
        {
477
        {
478
- 

Return to bug 32431