$sql = "SELECT trans.*,"
."ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total,"
."cust.name AS DebtorName, cust.address, "
- ."cust.email AS email2, cust.curr_code, "
+ ."cust.curr_code, "
."cust.tax_id ";
if ($trans_type == ST_CUSTPAYMENT) {
.TB_PREF."tax_groups.id AS tax_group_id ";
}
- $sql .= ", IF(ISNULL(branch.rep_lang),cust.rep_lang,branch.rep_lang) AS rep_lang";
-
$sql .= " FROM ".TB_PREF."debtor_trans trans, ".TB_PREF."debtors_master cust";
if ($trans_type == ST_CUSTPAYMENT) {
}
$row = db_fetch($result);
- $row['email'] = $row['email2'];
return $row;
}