|
Lines 5858-5863
subtest "GetSoonestRenewDate tests" => sub {
Link Here
|
| 5858 |
$datedue, |
5858 |
$datedue, |
| 5859 |
'Checkouts with auto-renewal can be renewed earliest on due date if no renewalbefore' |
5859 |
'Checkouts with auto-renewal can be renewed earliest on due date if no renewalbefore' |
| 5860 |
); |
5860 |
); |
|
|
5861 |
|
| 5862 |
t::lib::Mocks::mock_preference( 'NoRenewalBeforePrecision', 'date' ); |
| 5863 |
Koha::CirculationRules->set_rule( |
| 5864 |
{ |
| 5865 |
categorycode => undef, |
| 5866 |
branchcode => undef, |
| 5867 |
itemtype => undef, |
| 5868 |
rule_name => 'norenewalbefore', |
| 5869 |
rule_value => 1, |
| 5870 |
} |
| 5871 |
); |
| 5872 |
$issue->date_due( dt_from_string )->store; |
| 5873 |
is( |
| 5874 |
GetSoonestRenewDate( $patron->id, $item->itemnumber ), |
| 5875 |
dt_from_string->truncate( to => 'day' ), |
| 5876 |
'Checkouts with auto-renewal can be renewed 1 day before due date if no renewalbefore = 1 and precision = "date"' |
| 5877 |
); |
| 5861 |
}; |
5878 |
}; |
| 5862 |
|
5879 |
|
| 5863 |
subtest "CanBookBeIssued + needsconfirmation message" => sub { |
5880 |
subtest "CanBookBeIssued + needsconfirmation message" => sub { |
| 5864 |
- |
|
|