Lines 3213-3218
subtest 'Incremented fee tests' => sub {
Link Here
|
3213 |
|
3213 |
|
3214 |
$dt_to = dt_from_string()->add( hours => 4 ); |
3214 |
$dt_to = dt_from_string()->add( hours => 4 ); |
3215 |
$dt_to_renew = dt_from_string()->add( hours => 6 ); |
3215 |
$dt_to_renew = dt_from_string()->add( hours => 6 ); |
|
|
3216 |
$calendar->delete_holiday( weekday => 3); |
3216 |
|
3217 |
|
3217 |
$issue = |
3218 |
$issue = |
3218 |
AddIssue( $patron->unblessed, $item->barcode, $dt_to, undef, $dt_from ); |
3219 |
AddIssue( $patron->unblessed, $item->barcode, $dt_to, undef, $dt_from ); |
Lines 3279-3285
subtest 'CanBookBeIssued & RentalFeesCheckoutConfirmation' => sub {
Link Here
|
3279 |
|
3280 |
|
3280 |
$itemtype->rentalcharge('1.000000')->store; |
3281 |
$itemtype->rentalcharge('1.000000')->store; |
3281 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef ); |
3282 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef ); |
3282 |
is_deeply( $needsconfirmation, { RENTALCHARGE => '1' }, 'Item needs rentalcharge confirmation to be issued' ); |
3283 |
is_deeply( $needsconfirmation, { RENTALCHARGE => '1.00' }, 'Item needs rentalcharge confirmation to be issued' ); |
3283 |
$itemtype->rentalcharge('0')->store; |
3284 |
$itemtype->rentalcharge('0')->store; |
3284 |
$itemtype->rentalcharge_daily('1.000000')->store; |
3285 |
$itemtype->rentalcharge_daily('1.000000')->store; |
3285 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef ); |
3286 |
( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef ); |
3286 |
- |
|
|