X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_db.inc;h=60bac30061679dae94b8c90eb2a5b28d263fe265;hb=8e299fb1bbc9113b4efdcb6973239041129c47cf;hp=de6ce056ccd7376d6594a92a74e283f2c459e6fa;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/inventory/includes/db/items_db.inc b/inventory/includes/db/items_db.inc index de6ce056..60bac300 100644 --- a/inventory/includes/db/items_db.inc +++ b/inventory/includes/db/items_db.inc @@ -12,7 +12,7 @@ function update_item($stock_id, $description, $long_description, $category_id, $tax_type_id, $units='', $mb_flag='', $sales_account, $inventory_account, $cogs_account, $adjustment_account, $assembly_account, $dimension_id, - $dimension2_id, $no_sale, $editable) + $dimension2_id, $no_sale, $editable, $no_purchase) { $sql = "UPDATE ".TB_PREF."stock_master SET long_description=".db_escape($long_description).", description=".db_escape($description).", @@ -26,6 +26,7 @@ function update_item($stock_id, $description, $long_description, $category_id, dimension2_id=".db_escape($dimension2_id).", tax_type_id=".db_escape($tax_type_id).", no_sale=".db_escape($no_sale).", + no_purchase=".db_escape($no_purchase).", editable=".db_escape($editable); if ($units != '') @@ -44,7 +45,7 @@ function update_item($stock_id, $description, $long_description, $category_id, function add_item($stock_id, $description, $long_description, $category_id, $tax_type_id, $units, $mb_flag, $sales_account, $inventory_account, $cogs_account, $adjustment_account, $assembly_account, $dimension_id, - $dimension2_id, $no_sale, $editable) + $dimension2_id, $no_sale, $editable, $no_purchase) { $sql = "INSERT INTO ".TB_PREF."stock_master (stock_id, description, long_description, category_id, tax_type_id, units, mb_flag, sales_account, inventory_account, cogs_account, @@ -57,6 +58,7 @@ function add_item($stock_id, $description, $long_description, $category_id, .", ".db_escape($assembly_account).", " .db_escape($dimension_id).", ".db_escape($dimension2_id)."," .db_escape($no_sale)."," + .db_escape($no_purchase)."," .db_escape($editable).")"; db_query($sql, "The item could not be added");