Added links to payments for invoices in customer/supplier allocation inquiry
[fa-stable.git] / sales / includes / db / custalloc_db.inc
index c80378c6737ad710dce7ac8ff85ba03d794b7b2c..896649090fedf2658b5dd85ac8b4b4d1a4d4d289 100644 (file)
@@ -202,7 +202,8 @@ function get_sql_for_customer_allocation_inquiry()
                        + trans.ov_freight_tax + trans.ov_discount)     AS TotalAmount,
                trans.alloc AS Allocated,
                ((trans.type = ".ST_SALESINVOICE.")
-                       AND trans.due_date < '" . date2sql(Today()) . "') AS OverDue
+                       AND trans.due_date < '" . date2sql(Today()) . "') AS OverDue,
+               trans.debtor_no
        FROM "
                        .TB_PREF."debtor_trans as trans, "
                        .TB_PREF."debtors_master as debtor