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

(-)a/members/paycollect.pl (-4 / +4 lines)
Lines 145-151 if ( $selected_accts ) { Link Here
145
    }
145
    }
146
    my @acc = split /,/, $selected_accts;
146
    my @acc = split /,/, $selected_accts;
147
147
148
    @selected_accountlines = Koha::Account::Lines->search(
148
    my $selected_accountlines = Koha::Account::Lines->search(
149
        {
149
        {
150
            borrowernumber    => $borrowernumber,
150
            borrowernumber    => $borrowernumber,
151
            amountoutstanding => { '<>' => 0 },
151
            amountoutstanding => { '<>' => 0 },
Lines 154-161 if ( $selected_accts ) { Link Here
154
        { order_by => 'date' }
154
        { order_by => 'date' }
155
    );
155
    );
156
156
157
    $total_due = 0; # Reset and recalculate total due
157
    $total_due = $selected_accountlines->_resultset->get_column('amountoutstanding')->sum();
158
    map { $total_due += $_->amountoutstanding } @selected_accountlines;
158
159
    @selected_accountlines = $selected_accountlines->as_list;
159
}
160
}
160
161
161
162
162
- 

Return to bug 26076