|
Lines 2974-2990
subtest 'ItemsDeniedRenewal preference' => sub {
Link Here
|
| 2974 |
C4::Context->set_preference('ItemsDeniedRenewal',''); |
2974 |
C4::Context->set_preference('ItemsDeniedRenewal',''); |
| 2975 |
|
2975 |
|
| 2976 |
my $idr_lib = $builder->build_object({ class => 'Koha::Libraries'}); |
2976 |
my $idr_lib = $builder->build_object({ class => 'Koha::Libraries'}); |
| 2977 |
$dbh->do( |
2977 |
Koha::CirculationRules->set_rules( |
| 2978 |
q{ |
2978 |
{ |
| 2979 |
INSERT INTO issuingrules ( categorycode, branchcode, itemtype, reservesallowed, issuelength, lengthunit, renewalsallowed, renewalperiod, |
2979 |
categorycode => '*', |
| 2980 |
norenewalbefore, auto_renew, fine, chargeperiod ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) |
2980 |
itemtype => '*', |
| 2981 |
}, |
2981 |
branchcode => $idr_lib->branchcode, |
| 2982 |
{}, |
2982 |
rules => { |
| 2983 |
'*', $idr_lib->branchcode, '*', 25, |
2983 |
reservesallowed => 25, |
| 2984 |
14, 'days', |
2984 |
issuelength => 14, |
| 2985 |
10, 7, |
2985 |
lengthunit => 'days', |
| 2986 |
undef, 0, |
2986 |
renewalsallowed => 10, |
| 2987 |
.10, 1 |
2987 |
renewalperiod => 7, |
|
|
2988 |
norenewalbefore => undef, |
| 2989 |
auto_renew => 0, |
| 2990 |
fine => .10, |
| 2991 |
chargeperiod => 1, |
| 2992 |
} |
| 2993 |
} |
| 2988 |
); |
2994 |
); |
| 2989 |
|
2995 |
|
| 2990 |
my $deny_book = $builder->build_object({ class => 'Koha::Items', value => { |
2996 |
my $deny_book = $builder->build_object({ class => 'Koha::Items', value => { |