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

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

Return to bug 15397