[Koha-bugs] [Bug 22530] New: Koha::Charges::Fees-?accumulate_rentalcharge dies if no issuingrule is found
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 18 14:34:32 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22530
Bug ID: 22530
Summary: Koha::Charges::Fees-?accumulate_rentalcharge dies if
no issuingrule is found
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
Target Milestone: ---
We are checking to see the rental fee for an item, but assume that a rule was
found
101 my $units = $issuing_rule->lengthunit;
102 my $rentalcharge_increment = ( $units eq 'days' ) ?
$itemtype->rentalcharge_daily : $itemtype->rentalcharge_hourly;
we should set the unit to 'days' if no rule found or simply return 0 (no charge
if you aren't allowed to issue)
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list