X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fdb%2Fpo_db.inc;h=cb2a1e49cfeca3cd93e2a8af32575a2f5023e415;hb=171074993d8f6768cde0626697abd6b4eab732a6;hp=ba2740e927f1b0dc296bd0bd7c9d20c9a7409ffd;hpb=18fb9ad2356007f48d6e7f31e335cdbd248df110;p=fa-stable.git diff --git a/purchasing/includes/db/po_db.inc b/purchasing/includes/db/po_db.inc index ba2740e9..cb2a1e49 100644 --- a/purchasing/includes/db/po_db.inc +++ b/purchasing/includes/db/po_db.inc @@ -19,7 +19,7 @@ function add_po(&$po_obj) /*Insert to purchase order header record */ $sql = "INSERT INTO ".TB_PREF."purch_orders (supplier_id, Comments, ord_date, reference, requisition_no, into_stock_location, delivery_address) VALUES("; - $sql .= "' ". $po_obj->supplier_id . "'," . + $sql .= db_escape($po_obj->supplier_id) . "," . db_escape($po_obj->Comments) . ",'" . date2sql($po_obj->orig_order_date) . "', '" . $po_obj->reference . "', " .