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

(-)a/C4/Accounts.pm (-2 / +1 lines)
Lines 606-612 sub recordpayment_selectaccts { Link Here
606
    my $sql = 'SELECT * FROM accountlines WHERE (borrowernumber = ?) ' .
606
    my $sql = 'SELECT * FROM accountlines WHERE (borrowernumber = ?) ' .
607
    'AND (amountoutstanding<>0) ';
607
    'AND (amountoutstanding<>0) ';
608
    if (@{$accts} ) {
608
    if (@{$accts} ) {
609
        $sql .= ' AND accountno IN ( ' .  join ',', @{$accts};
609
        $sql .= ' AND accountlines_id IN ( ' .  join ',', @{$accts};
610
        $sql .= ' ) ';
610
        $sql .= ' ) ';
611
    }
611
    }
612
    $sql .= ' ORDER BY date';
612
    $sql .= ' ORDER BY date';
613
- 

Return to bug 15397