Allowing multiple jounal entries on one trans_no.
[fa-stable.git] / sales / includes / db / cust_trans_db.inc
index 710be16f4f395968577688fcb9611ac6943b70b0..602c412744c830c41b4819e7502ffb68b943dea6 100644 (file)
@@ -396,7 +396,7 @@ function get_sql_for_customer_inquiry($from, $to, $cust_id = ALL_TEXT, $filter =
        }
        }
 
-       $sql .= " GROUP BY trans.trans_no, trans.type";
+       $sql .= " GROUP BY trans.trans_no, trans.type, trans.debtor_no";
 
        return $sql;
 }