$sql = "UPDATE ".TB_PREF."stock_master SET material_cost=".db_escape($material_cost)."
WHERE stock_id='$stock_id'";
db_query($sql,"The cost details for the inventory item could not be updated");
$sql = "UPDATE ".TB_PREF."stock_master SET material_cost=".db_escape($material_cost)."
WHERE stock_id='$stock_id'";
db_query($sql,"The cost details for the inventory item could not be updated");