Bug 35959: Fix C3 merge of Koha::Account::Debit, Koha::Account::Credit
Test plan: Run the following commands perl -c Koha/Account/Debit.pm perl -c Koha/Account/Credit.pm They should all print 'syntax OK' Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
4190e92f5e
commit
3d1b5932b4
|
|
@ -27,7 +27,6 @@ use Koha::Account::Offsets;
|
|||
use Koha::Database;
|
||||
use Koha::DateUtils qw( dt_from_string );
|
||||
use Koha::Exceptions::Account;
|
||||
use Koha::Items;
|
||||
use Koha::Patron::Debarments;
|
||||
|
||||
use base qw(Koha::Object Koha::Object::Mixin::AdditionalFields);
|
||||
|
|
@ -80,6 +79,7 @@ sub item {
|
|||
my ( $self ) = @_;
|
||||
my $rs = $self->_result->itemnumber;
|
||||
return unless $rs;
|
||||
require Koha::Item;
|
||||
return Koha::Item->_new_from_dbic( $rs );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue