// 2008-09-20 Joe Hunt
if ($date != "")
exchange_variation($type, $type_no, $row['trans_type_to'], $row['trans_no_to'], $date,
- $row['amt'], payment_person_types::customer(), true);
+ $row['amt'], PT_CUSTOMER, true);
//////////////////////
}
else
{
$sql = get_alloc_trans_sql(null, "round(ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount-alloc,6) > 0
- AND trans.type != " . systypes::cust_payment() . "
- AND trans.type != " . systypes::bank_deposit() . "
+ AND trans.type != " . ST_CUSTPAYMENT . "
+ AND trans.type != " . ST_BANKDEPOSIT . "
AND trans.type != 11
AND trans.type != 13
AND trans.debtor_no=$customer_id");