@@ -, +, @@ applied to $ kshell k$ prove t/db_dependent/Koha/Account.t --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Account.pm +++ a/Koha/Account.pm @@ -110,7 +110,7 @@ sub pay { } my $patron = Koha::Patrons->find( $self->{patron_id} ); - my @account_offsets = $payment->credit_offsets->as_list; + my @account_offsets = $payment->credit_offsets({ type => 'APPLY' })->as_list; if ( C4::Context->preference('UseEmailReceipts') ) { if ( my $letter = C4::Letters::GetPreparedLetter( --