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

(-)a/t/db_dependent/Circulation.t (-4 / +4 lines)
Lines 3348-3355 subtest 'Incremented fee tests' => sub { Link Here
3348
    is( $itemtype->rentalcharge_hourly,
3348
    is( $itemtype->rentalcharge_hourly,
3349
        '2.500000', 'Hourly rental charge stored and retreived correctly' );
3349
        '2.500000', 'Hourly rental charge stored and retreived correctly' );
3350
3350
3351
    $dt_to       = dt_from_string()->add( hours => 4 );
3351
    $dt_to       = dt_from_string()->add( hours => 4, minutes => 30 );
3352
    $dt_to_renew = dt_from_string()->add( hours => 6 );
3352
    $dt_to_renew = dt_from_string()->add( hours => 6, minutes => 30 );
3353
    $calendar->delete_holiday( weekday => 3);
3353
3354
3354
    $issue =
3355
    $issue =
3355
      AddIssue( $patron->unblessed, $item->barcode, $dt_to, undef, $dt_from );
3356
      AddIssue( $patron->unblessed, $item->barcode, $dt_to, undef, $dt_from );
Lines 3416-3422 subtest 'CanBookBeIssued & RentalFeesCheckoutConfirmation' => sub { Link Here
3416
3417
3417
    $itemtype->rentalcharge('1.000000')->store;
3418
    $itemtype->rentalcharge('1.000000')->store;
3418
    ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef );
3419
    ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef );
3419
    is_deeply( $needsconfirmation, { RENTALCHARGE => '1' }, 'Item needs rentalcharge confirmation to be issued' );
3420
    is_deeply( $needsconfirmation, { RENTALCHARGE => '1.00' }, 'Item needs rentalcharge confirmation to be issued' );
3420
    $itemtype->rentalcharge('0')->store;
3421
    $itemtype->rentalcharge('0')->store;
3421
    $itemtype->rentalcharge_daily('1.000000')->store;
3422
    $itemtype->rentalcharge_daily('1.000000')->store;
3422
    ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef );
3423
    ( $issuingimpossible, $needsconfirmation ) = CanBookBeIssued( $patron, $item->barcode, $dt_due, undef, undef, undef );
3423
- 

Return to bug 23382