! -> Note
$ -> Affected files
+18-May-2008 Joe Hunt
+# Bug when inserting new records in debtor_trans.
+$ /sales/includes/db/cust_trans_db.inc
+
16-May-2008 Janusz Dobrowolski
+ Rewritten errors/messages handling, unified for ajax/user/php errors
$ /includes/errors.inc
order_, ov_amount, ov_discount,
ov_gst, ov_freight, ov_freight_tax,
rate, ship_via, alloc, trans_link
- ) VALUES ($trans_no, $trans_type,
+ ) VALUES ($trans_no, $trans_type,
".db_escape($debtor_no).", ".db_escape($BranchNo).",
'$SQLDate', '$SQLDueDate', ".db_escape($reference).",
- ".db_escape($sales_type).", $order_no, $Total, ".db_escape($discount).", $Tax,
+ ".db_escape($sales_type).", $order_no, $Total, ".db_escape($discount).", $Tax,
".db_escape($Freight).",
- $FreightTax, $rate, ".db_escape($ship_via).", $AllocAmt, ".db_escape($trans_link);
+ $FreightTax, $rate, ".db_escape($ship_via).", $AllocAmt, ".db_escape($trans_link).")";
} else { // may be optional argument should stay unchanged ?
$sql = "UPDATE ".TB_PREF."debtor_trans SET
debtor_no=".db_escape($debtor_no)." , branch_code=".db_escape($BranchNo).",