<<

NAME

Koha::RefundLostItemFeeRules - Koha RefundLostItemFeeRules object set class

API

Class Methods

_type

object_class

should_refund

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.

_effective_branch_rule

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.

_choose_branch

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.

Koha::RefundLostItemFeeRules->find();

Inherit from Koha::Objects->find(), but forces rule_name => 'refund'

_default_rule (internal)

This function returns the default rule defined for refunding lost item fees on return. It defaults to 1 if no rule is defined.

<<