View | Details | Raw Unified | Return to bug 18930
Collapse All | Expand All

(-)a/Koha/RefundLostItemFeeRules.pm (+14 lines)
Lines 136-141 sub _choose_branch { Link Here
136
    return $branch;
136
    return $branch;
137
}
137
}
138
138
139
=head3 Koha::RefundLostItemFeeRules->find();
140
141
Inherit from Koha::Objects->find(), but forces rule_name => 'refund'
142
143
=cut
144
145
sub find {
146
    my ( $self, @pars ) = @_;
147
148
    $pars[0]->{rule_name} = 'refund';
149
150
    return $self->SUPER::find(@pars);
151
}
152
139
=head3 _default_rule (internal)
153
=head3 _default_rule (internal)
140
154
141
This function returns the default rule defined for refunding lost
155
This function returns the default rule defined for refunding lost
(-)a/admin/smart-rules.pl (-2 / +2 lines)
Lines 539-545 elsif ( $op eq 'mod-refund-lost-item-fee-rule' ) { Link Here
539
    }
539
    }
540
}
540
}
541
541
542
my $refundLostItemFeeRule = Koha::RefundLostItemFeeRules->find({ branchcode => $branch });
542
my $refundLostItemFeeRule = Koha::RefundLostItemFeeRules->find({ branchcode => ($branch eq '*') ? undef:$branch });
543
543
$template->param(
544
$template->param(
544
    refundLostItemFeeRule => $refundLostItemFeeRule,
545
    refundLostItemFeeRule => $refundLostItemFeeRule,
545
    defaultRefundRule     => Koha::RefundLostItemFeeRules->_default_rule
546
    defaultRefundRule     => Koha::RefundLostItemFeeRules->_default_rule
546
- 

Return to bug 18930