@@ -, +, @@ Koha::Account->non_issues_charges --- t/db_dependent/Koha/Account.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Account.t +++ a/t/db_dependent/Koha/Account.t @@ -34,7 +34,7 @@ my $builder = t::lib::TestBuilder->new; subtest 'outstanding_debits() tests' => sub { - plan tests => 22; + plan tests => 23; $schema->storage->txn_begin; @@ -91,6 +91,9 @@ subtest 'outstanding_debits() tests' => sub { $lines = $account_4->outstanding_debits(); is( $lines->count, 0, 'No credits are confused with debits because of the amountoutstanding value' ); + Koha::Account::Line->new({ borrowernumber => $patron_4->id, amount => -3, amountoutstanding => 3, accounttype => "F" })->store(); + is ( $account_4->non_issues_charges, 3, 'Non issues charges are valid'); + $schema->storage->txn_rollback; }; --