|
Lines 461-471
subtest 'store' => sub {
Link Here
|
| 461 |
notforloan => 0, |
461 |
notforloan => 0, |
| 462 |
rentalcharge => 0, |
462 |
rentalcharge => 0, |
| 463 |
defaultreplacecost => undef, |
463 |
defaultreplacecost => undef, |
| 464 |
processfee => $processfee_amount, |
|
|
| 465 |
rentalcharge_daily => 0, |
464 |
rentalcharge_daily => 0, |
| 466 |
} |
465 |
} |
| 467 |
} |
466 |
} |
| 468 |
); |
467 |
); |
|
|
468 |
Koha::CirculationRules->set_rule( |
| 469 |
{ |
| 470 |
itemtype => $item_type->itemtype, branchcode => undef, rule_value => $processfee_amount, |
| 471 |
rule_name => 'lost_item_processing_fee' |
| 472 |
} |
| 473 |
); |
| 469 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
474 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
| 470 |
|
475 |
|
| 471 |
$biblio = $builder->build_sample_biblio( { author => 'Hall, Daria' } ); |
476 |
$biblio = $builder->build_sample_biblio( { author => 'Hall, Daria' } ); |
|
Lines 1044-1050
subtest 'store' => sub {
Link Here
|
| 1044 |
notforloan => 0, |
1049 |
notforloan => 0, |
| 1045 |
rentalcharge => 0, |
1050 |
rentalcharge => 0, |
| 1046 |
defaultreplacecost => undef, |
1051 |
defaultreplacecost => undef, |
| 1047 |
processfee => 0, |
|
|
| 1048 |
rentalcharge_daily => 0, |
1052 |
rentalcharge_daily => 0, |
| 1049 |
} |
1053 |
} |
| 1050 |
} |
1054 |
} |
|
Lines 1162-1168
subtest 'store' => sub {
Link Here
|
| 1162 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
1166 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
| 1163 |
my $barcode = 'KD123456794'; |
1167 |
my $barcode = 'KD123456794'; |
| 1164 |
my $replacement_amount = 100; |
1168 |
my $replacement_amount = 100; |
| 1165 |
my $processfee_amount = 20; |
|
|
| 1166 |
|
1169 |
|
| 1167 |
my $item_type = $builder->build_object( |
1170 |
my $item_type = $builder->build_object( |
| 1168 |
{ |
1171 |
{ |
|
Lines 1171-1177
subtest 'store' => sub {
Link Here
|
| 1171 |
notforloan => 0, |
1174 |
notforloan => 0, |
| 1172 |
rentalcharge => 0, |
1175 |
rentalcharge => 0, |
| 1173 |
defaultreplacecost => undef, |
1176 |
defaultreplacecost => undef, |
| 1174 |
processfee => 0, |
|
|
| 1175 |
rentalcharge_daily => 0, |
1177 |
rentalcharge_daily => 0, |
| 1176 |
} |
1178 |
} |
| 1177 |
} |
1179 |
} |
|
Lines 1575-1581
subtest 'store' => sub {
Link Here
|
| 1575 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
1577 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
| 1576 |
my $barcode = 'KD123456795'; |
1578 |
my $barcode = 'KD123456795'; |
| 1577 |
my $replacement_amount = 100; |
1579 |
my $replacement_amount = 100; |
| 1578 |
my $processfee_amount = 20; |
|
|
| 1579 |
|
1580 |
|
| 1580 |
my $item_type = $builder->build_object( |
1581 |
my $item_type = $builder->build_object( |
| 1581 |
{ |
1582 |
{ |
|
Lines 1584-1590
subtest 'store' => sub {
Link Here
|
| 1584 |
notforloan => 0, |
1585 |
notforloan => 0, |
| 1585 |
rentalcharge => 0, |
1586 |
rentalcharge => 0, |
| 1586 |
defaultreplacecost => undef, |
1587 |
defaultreplacecost => undef, |
| 1587 |
processfee => 0, |
|
|
| 1588 |
rentalcharge_daily => 0, |
1588 |
rentalcharge_daily => 0, |
| 1589 |
} |
1589 |
} |
| 1590 |
} |
1590 |
} |