Lines 702-709
subtest do_checkin => sub {
Link Here
|
702 |
$item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode, undef, undef, |
702 |
$item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode, undef, undef, |
703 |
$server->{account} |
703 |
$server->{account} |
704 |
); |
704 |
); |
705 |
is( |
705 |
like( |
706 |
$circ->{screen_msg}, 'You owe $12.00 for this item.', |
706 |
$circ->{screen_msg}, qr/^You owe \D*12\D/, |
707 |
"The fine is displayed on checkin when show_outstanding_amount is enabled" |
707 |
"The fine is displayed on checkin when show_outstanding_amount is enabled" |
708 |
); |
708 |
); |
709 |
|
709 |
|
Lines 943-949
subtest do_checkout_with_patron_blocked => sub {
Link Here
|
943 |
|
943 |
|
944 |
$server->{account}->{show_outstanding_amount} = 1; |
944 |
$server->{account}->{show_outstanding_amount} = 1; |
945 |
$circ = $ils->checkout( $fines_patron->cardnumber, $item->barcode, undef, undef, $server->{account} ); |
945 |
$circ = $ils->checkout( $fines_patron->cardnumber, $item->barcode, undef, undef, $server->{account} ); |
946 |
is( $circ->{screen_msg}, 'Patron has fines - You owe $10.00.', "Got correct fines with amount screen message" ); |
946 |
like( $circ->{screen_msg}, qr/Patron has fines - You owe \D*10\D/, "Got correct fines with amount screen message" ); |
947 |
my $debarred_patron = $builder->build_object( |
947 |
my $debarred_patron = $builder->build_object( |
948 |
{ |
948 |
{ |
949 |
class => 'Koha::Patrons', |
949 |
class => 'Koha::Patrons', |
950 |
- |
|
|