projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf8fb7
)
don't die if $issuing_rule is missing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 17 Mar 2020 13:38:18 +0000
(14:38 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 17 Mar 2020 13:38:18 +0000
(14:38 +0100)
Koha/Charges/Fees.pm
patch
|
blob
|
history
diff --git
a/Koha/Charges/Fees.pm
b/Koha/Charges/Fees.pm
index
41299ce
..
389c827
100644
(file)
--- a/
Koha/Charges/Fees.pm
+++ b/
Koha/Charges/Fees.pm
@@
-98,6
+98,9
@@
sub accumulate_rentalcharge {
branchcode => $self->library->id
}
);
+
+ return 0 unless $issuing_rule; ## FIXME dpavlin
+
my $units = $issuing_rule->lengthunit;
my $rentalcharge_increment = ( $units eq 'days' ) ? $itemtype->rentalcharge_daily : $itemtype->rentalcharge_hourly;