Lines 80-86
t::lib::Mocks::mock_preference( 'AllowFineOverride', '' );
Link Here
|
80 |
my ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} ); |
80 |
my ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} ); |
81 |
is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" ); |
81 |
is( $issuingimpossible->{DEBT_GUARANTEES}, undef, "Patron can check out item" ); |
82 |
|
82 |
|
83 |
my $account = Koha::Account->new( { patron_id => $guarantee->{borrowernumber} } ); |
83 |
my $account = Koha::Account->new( { patron_id => $guarantee->id } ); |
84 |
$account->add_debit({ amount => 10.00, type => 'lost_item', interface => 'test' }); |
84 |
$account->add_debit({ amount => 10.00, type => 'lost_item', interface => 'test' }); |
85 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} ); |
85 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->{barcode} ); |
86 |
is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" ); |
86 |
is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check out item due to debt for guarantee" ); |