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 |
my $object = Koha::Objects->find( { col1 => $val1, col2 => $val2 } ); |
143 |
my $object = Koha::Objects->find( $id ); |
144 |
my $object = Koha::Objects->find( $idpart1, $idpart2, $attrs ); # composite PK |
145 |
|
146 |
=cut |
147 |
|
148 |
sub find { |
149 |
my ( $self, @pars ) = @_; |
150 |
|
151 |
$pars[0]->{rule_name} = 'refund'; |
152 |
|
153 |
return $self->SUPER::find(@pars); |
154 |
} |
155 |
|
139 |
=head3 _default_rule (internal) |
156 |
=head3 _default_rule (internal) |
140 |
|
157 |
|
141 |
This function returns the default rule defined for refunding lost |
158 |
This function returns the default rule defined for refunding lost |