Bug when inserting new records in debtor_trans
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 18 May 2008 09:17:26 +0000 (09:17 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 18 May 2008 09:17:26 +0000 (09:17 +0000)
CHANGELOG.txt
sales/includes/db/cust_trans_db.inc

index 5968fe9bd93151e23d32c2b7c324e770a61b06ba..e098686ac908a7ddd7121b3b1f76ab6dc24247fa 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> 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
index dde04fe7cd687e39135359df141a45e6fade34a7..bcd41dba3d3b2e61a125c13bb38838e1f7c7a2bb 100644 (file)
@@ -99,12 +99,12 @@ function write_customer_trans($trans_type, $trans_no, $debtor_no, $BranchNo,
                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).",