@@ -, +, @@ --- t/db_dependent/Accounts.t | 8 ++++---- t/db_dependent/Circulation.t | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) --- a/t/db_dependent/Accounts.t +++ a/t/db_dependent/Accounts.t @@ -950,7 +950,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub { { credit_id => $credit->id, debit_id => $debit->id, - type => 'Payment', + type => 'APPLY', amount => 0 } )->store(); @@ -983,7 +983,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub { { credit_id => $credit->id, debit_id => $debit->id, - type => 'Payment', + type => 'APPLY', amount => 0 } )->store(); @@ -1017,7 +1017,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub { { credit_id => $credit->id, debit_id => $debit->id, - type => 'Payment', + type => 'APPLY', amount => 0 } )->store(); @@ -1084,7 +1084,7 @@ subtest "Koha::Account::Offset credit & debit tests" => sub { { credit_id => undef, debit_id => undef, - type => 'Payment', + type => 'CREATE', amount => 0, } )->store(); --- a/t/db_dependent/Circulation.t +++ a/t/db_dependent/Circulation.t @@ -3411,7 +3411,7 @@ subtest '_FixOverduesOnReturn' => sub { C4::Circulation::_FixOverduesOnReturn( $patron->{borrowernumber}, $item->itemnumber, 1, 'RETURNED' ); $accountline->_result()->discard_changes(); - $offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'Forgiven' })->next(); + $offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'CREATE' })->next(); is( $offset, undef, "No offset created when trying to forgive fine with no outstanding balance" ); isnt( $accountline->status, 'UNRETURNED', 'Open fine ( account type OVERDUE ) has been closed out ( status not UNRETURNED )'); is( $accountline->status, 'RETURNED', 'Passed status has been used to set as RETURNED )'); --