|
Lines 465-475
subtest 'store' => sub {
Link Here
|
| 465 |
notforloan => 0, |
465 |
notforloan => 0, |
| 466 |
rentalcharge => 0, |
466 |
rentalcharge => 0, |
| 467 |
defaultreplacecost => undef, |
467 |
defaultreplacecost => undef, |
| 468 |
processfee => $processfee_amount, |
|
|
| 469 |
rentalcharge_daily => 0, |
468 |
rentalcharge_daily => 0, |
| 470 |
} |
469 |
} |
| 471 |
} |
470 |
} |
| 472 |
); |
471 |
); |
|
|
472 |
Koha::CirculationRules->set_rule( |
| 473 |
{ |
| 474 |
itemtype => $item_type->itemtype, branchcode => undef, rule_value => $processfee_amount, |
| 475 |
rule_name => 'lost_item_processing_fee' |
| 476 |
} |
| 477 |
); |
| 473 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
478 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
| 474 |
|
479 |
|
| 475 |
$biblio = $builder->build_sample_biblio( { author => 'Hall, Daria' } ); |
480 |
$biblio = $builder->build_sample_biblio( { author => 'Hall, Daria' } ); |
|
Lines 1048-1054
subtest 'store' => sub {
Link Here
|
| 1048 |
notforloan => 0, |
1053 |
notforloan => 0, |
| 1049 |
rentalcharge => 0, |
1054 |
rentalcharge => 0, |
| 1050 |
defaultreplacecost => undef, |
1055 |
defaultreplacecost => undef, |
| 1051 |
processfee => 0, |
|
|
| 1052 |
rentalcharge_daily => 0, |
1056 |
rentalcharge_daily => 0, |
| 1053 |
} |
1057 |
} |
| 1054 |
} |
1058 |
} |
|
Lines 1166-1172
subtest 'store' => sub {
Link Here
|
| 1166 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
1170 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
| 1167 |
my $barcode = 'KD123456794'; |
1171 |
my $barcode = 'KD123456794'; |
| 1168 |
my $replacement_amount = 100; |
1172 |
my $replacement_amount = 100; |
| 1169 |
my $processfee_amount = 20; |
|
|
| 1170 |
|
1173 |
|
| 1171 |
my $item_type = $builder->build_object( |
1174 |
my $item_type = $builder->build_object( |
| 1172 |
{ |
1175 |
{ |
|
Lines 1175-1181
subtest 'store' => sub {
Link Here
|
| 1175 |
notforloan => 0, |
1178 |
notforloan => 0, |
| 1176 |
rentalcharge => 0, |
1179 |
rentalcharge => 0, |
| 1177 |
defaultreplacecost => undef, |
1180 |
defaultreplacecost => undef, |
| 1178 |
processfee => 0, |
|
|
| 1179 |
rentalcharge_daily => 0, |
1181 |
rentalcharge_daily => 0, |
| 1180 |
} |
1182 |
} |
| 1181 |
} |
1183 |
} |
|
Lines 1579-1585
subtest 'store' => sub {
Link Here
|
| 1579 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
1581 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
| 1580 |
my $barcode = 'KD123456795'; |
1582 |
my $barcode = 'KD123456795'; |
| 1581 |
my $replacement_amount = 100; |
1583 |
my $replacement_amount = 100; |
| 1582 |
my $processfee_amount = 20; |
|
|
| 1583 |
|
1584 |
|
| 1584 |
my $item_type = $builder->build_object( |
1585 |
my $item_type = $builder->build_object( |
| 1585 |
{ |
1586 |
{ |
|
Lines 1588-1594
subtest 'store' => sub {
Link Here
|
| 1588 |
notforloan => 0, |
1589 |
notforloan => 0, |
| 1589 |
rentalcharge => 0, |
1590 |
rentalcharge => 0, |
| 1590 |
defaultreplacecost => undef, |
1591 |
defaultreplacecost => undef, |
| 1591 |
processfee => 0, |
|
|
| 1592 |
rentalcharge_daily => 0, |
1592 |
rentalcharge_daily => 0, |
| 1593 |
} |
1593 |
} |
| 1594 |
} |
1594 |
} |