Bugfix [0000103]
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Dec 2008 20:50:52 +0000 (20:50 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Dec 2008 20:50:52 +0000 (20:50 +0000)
sales/includes/db/cust_trans_db.inc

index afa814d4779f6e3ec08bfbbc3817c9b090df86ff..95e5889734a50a4ffef58bee80dd743b6f750f0f 100644 (file)
@@ -116,7 +116,7 @@ function write_customer_trans($trans_type, $trans_no, $debtor_no, $BranchNo,
                reference=".db_escape($reference).", tpe=".db_escape($sales_type).", order_=$order_no,
                ov_amount=$Total, ov_discount=".db_escape($discount).", ov_gst=$Tax,
                ov_freight=".db_escape($Freight).", ov_freight_tax=$FreightTax, rate=$rate,
-               ship_via=".db_escape($ship_via).", alloc=$AllocAmt, trans_link=$trans_link
+               ship_via=".db_escape($ship_via).", alloc=$AllocAmt, trans_link='$trans_link'
                WHERE trans_no=$trans_no AND type=$trans_type";
        }
        db_query($sql, "The debtor transaction record could not be inserted");