Early payment discount option moved from branch to payment terms.
[fa-stable.git] / sales / includes / db / sales_order_db.inc
index 3296c5917c0e402e8b4cfc0e50948aa951d5faa0..f4d18625f6f28fb6b5f74bf48c5db00eec601b1c 100644 (file)
@@ -419,7 +419,6 @@ function get_customer_to_order($customer_id) {
                  cust.curr_code,
                  cust.discount,
                  cust.payment_terms,
-                 cust.pymt_discount,
                  cust.credit_limit - Sum(IFNULL(IF(trans.type IN(".implode(',', array(ST_CUSTCREDIT, ST_CUSTPAYMENT, ST_BANKDEPOSIT))."),
                        -1, 1) * (ov_amount + ov_gst + ov_freight + ov_freight_tax + ov_discount),0)) as cur_credit
                FROM ".TB_PREF."debtors_master cust