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

(-)a/members/paycollect.pl (-3 / +9 lines)
Lines 110-117 if ( $total_paid and $total_paid ne '0.00' ) { Link Here
110
    } else {
110
    } else {
111
        if ($individual) {
111
        if ($individual) {
112
            if ( $total_paid == $total_due ) {
112
            if ( $total_paid == $total_due ) {
113
                makepayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, $user,
113
                my $line = Koha::Account::Lines->find($accountlines_id);
114
                    $branch, $payment_note );
114
                Koha::Account->new( { patron_id => $borrowernumber } )->pay(
115
                    {
116
                        lines      => [$line],
117
                        amount     => $total_paid,
118
                        library_id => $branch,
119
                        note       => $payment_note
120
                    }
121
                );
115
            } else {
122
            } else {
116
                makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid,
123
                makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid,
117
                    $user, $branch, $payment_note );
124
                    $user, $branch, $payment_note );
118
- 

Return to bug 15906