View | Details | Raw Unified | Return to bug 23051
Collapse All | Expand All

(-)a/Koha/REST/V1/Patrons/Account.pm (-2 / +1 lines)
Lines 130-136 sub add_credit { Link Here
130
        my $outstanding_credit = $credit->amountoutstanding;
130
        my $outstanding_credit = $credit->amountoutstanding;
131
        if ($debits) {
131
        if ($debits) {
132
            # pay them!
132
            # pay them!
133
            $outstanding_credit = $credit->apply({ debits => [ $debits->as_list ], offset_type => 'payment' })->{outstanding_amount};
133
            $outstanding_credit = $credit->apply({ debits => [ $debits->as_list ], offset_type => 'payment' });
134
        }
134
        }
135
135
136
        if ($outstanding_credit) {
136
        if ($outstanding_credit) {
137
- 

Return to bug 23051