@@ -, +, @@ --- Koha/REST/V1/Patrons/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/REST/V1/Patrons/Account.pm +++ a/Koha/REST/V1/Patrons/Account.pm @@ -130,7 +130,7 @@ sub add_credit { my $outstanding_credit = $credit->amountoutstanding; if ($debits) { # pay them! - $outstanding_credit = $credit->apply({ debits => [ $debits->as_list ], offset_type => 'payment' })->{outstanding_amount}; + $outstanding_credit = $credit->apply({ debits => [ $debits->as_list ], offset_type => 'payment' }); } if ($outstanding_credit) { --