We overload the find method in Koha::RefundLostItemFeeRules but we only test with branchcode calls and do not pupulate the database with sufficient test data to show that find would fail in a number of cases where a different rule may be present for distinct itemtypes or categorycodes per branch.
I think this is done on bug 18936: Koha/CirculationRules.pm 54 our $RULE_KINDS = { 55 refund => { 56 scope => [ 'branchcode' ], 57 default_value => 1, 58 },
Also this rule must not exist in the DB for different categories or itemtypes, you can only define it (via the interface) for different libraries.
Can this be closed with bug 18936 pushed?
Good call.. lets close it.