|
Lines 3060-3076
subtest 'ItemsDeniedRenewal preference' => sub {
Link Here
|
| 3060 |
C4::Context->set_preference('ItemsDeniedRenewal',''); |
3060 |
C4::Context->set_preference('ItemsDeniedRenewal',''); |
| 3061 |
|
3061 |
|
| 3062 |
my $idr_lib = $builder->build_object({ class => 'Koha::Libraries'}); |
3062 |
my $idr_lib = $builder->build_object({ class => 'Koha::Libraries'}); |
| 3063 |
$dbh->do( |
3063 |
Koha::CirculationRules->set_rules( |
| 3064 |
q{ |
3064 |
{ |
| 3065 |
INSERT INTO issuingrules ( categorycode, branchcode, itemtype, reservesallowed, issuelength, lengthunit, renewalsallowed, renewalperiod, |
3065 |
categorycode => '*', |
| 3066 |
norenewalbefore, auto_renew, fine, chargeperiod ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) |
3066 |
itemtype => '*', |
| 3067 |
}, |
3067 |
branchcode => $idr_lib->branchcode, |
| 3068 |
{}, |
3068 |
rules => { |
| 3069 |
'*', $idr_lib->branchcode, '*', 25, |
3069 |
reservesallowed => 25, |
| 3070 |
14, 'days', |
3070 |
issuelength => 14, |
| 3071 |
10, 7, |
3071 |
lengthunit => 'days', |
| 3072 |
undef, 0, |
3072 |
renewalsallowed => 10, |
| 3073 |
.10, 1 |
3073 |
renewalperiod => 7, |
|
|
3074 |
norenewalbefore => undef, |
| 3075 |
auto_renew => 0, |
| 3076 |
fine => .10, |
| 3077 |
chargeperiod => 1, |
| 3078 |
} |
| 3079 |
} |
| 3074 |
); |
3080 |
); |
| 3075 |
|
3081 |
|
| 3076 |
my $deny_book = $builder->build_object({ class => 'Koha::Items', value => { |
3082 |
my $deny_book = $builder->build_object({ class => 'Koha::Items', value => { |