X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Koha%2FAccount%2FLine.pm;h=a05ab65c282cd02f5e0e936e9081f071a319709b;hb=dec9f754f8bbebaf6d2a2e9ba1ce1b9935ba45da;hp=13e9b07a480c35300468c783caeb9d6e01fcd511;hpb=c188ec1567e69a1ee9e9fff19320a273e4ea65dd;p=koha-ffzg.git diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 13e9b07a48..a05ab65c28 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -131,8 +131,8 @@ Return the credit_offsets linked to this account line if some exist =cut sub credit_offsets { - my ( $self ) = @_; - my $rs = $self->_result->account_offsets_credits; + my ( $self, $cond, $attr ) = @_; + my $rs = $self->_result->search_related( 'account_offsets_credits', $cond, $attr); return unless $rs; return Koha::Account::Offsets->_new_from_dbic($rs); } @@ -144,8 +144,8 @@ Return the debit_offsets linked to this account line if some exist =cut sub debit_offsets { - my ( $self ) = @_; - my $rs = $self->_result->account_offsets_debits; + my ( $self, $cond, $attr ) = @_; + my $rs = $self->_result->search_related( 'account_offsets_debits', $cond, $attr); return unless $rs; return Koha::Account::Offsets->_new_from_dbic($rs); }