Fixed typo in sql query
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 18 Apr 2008 10:06:32 +0000 (10:06 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 18 Apr 2008 10:06:32 +0000 (10:06 +0000)
purchasing/includes/db/po_db.inc

index b8ef5ada4410aad4dfd63f4c2c070ea61edece0e..ba2740e927f1b0dc296bd0bd7c9d20c9a7409ffd 100644 (file)
@@ -64,7 +64,7 @@ function update_po(&$po_obj)
 
     /*Update the purchase order header with any changes */
     $sql = "UPDATE ".TB_PREF."purch_orders SET Comments=" . db_escape($po_obj->Comments) . ",
-               requisition_no= " db_escape(. $po_obj->requisition_no). ",
+               requisition_no= ". db_escape( $po_obj->requisition_no). ",
                into_stock_location=" . db_escape($po_obj->Location). ",
                ord_date='" . date2sql($po_obj->orig_order_date) . "',
                delivery_address=" . db_escape($po_obj->delivery_address);