Koha::RefundLostItemFeeRules - Koha RefundLostItemFeeRules object set class
Koha::RefundLostItemFeeRules->should_refund()
Returns a boolean telling if the fee needs to be refund given the passed params, and the current rules/sysprefs configuration.
Koha::RefundLostItemFeeRules->_effective_branch_rule
Given a branch, returns a boolean representing the resulting rule. It tries the branch-specific first. Then falls back to the defined default.
my $branch = Koha::RefundLostItemFeeRules->_choose_branch({ current_branch => 'current_branch_code', item_home_branch => 'item_home_branch', item_holding_branch => 'item_holding_branch' });
Helper function that determines the branch to be used to apply the rule.
Inherit from Koha::Objects->find(), but forces rule_name => 'refund'
This function returns the default rule defined for refunding lost item fees on return. It defaults to 1 if no rule is defined.