getManagedEmployees(); } if ($function == "get_employee_username") { getEmployeeUsername(); } if ($function == "get_warehouses") { getWarehouses(); } if ($function == "add_warehouse") { addWarehouse(); } if ($function == "get_inventory") { getInventory(); } if ($function == "add_inventory") { addInventory(); } if ($function == "get_outstanding_orders") { getOutstandingOrders(); } if ($function == "fill_order") { fillOrder(); } if ($function == "get_suggestions") { getSuggestions(); } if ($function == "get_monthly_sales_item") { getMonthlySalesItem(); } if ($function == "get_monthly_sales_order") { getMonthlySalesOrder();
if (isset($_POST['function']) && !is_null($_POST['function'])) { $function = $_POST['function']; } else { die('Sorry. Error:' . $_POST['function']); } switch ($function) { case 'addWine': addWine($_POST, $dbh); break; case 'updateWine': updateWine($_POST, $dbh); break; //case 'removeWine': removeWine($_POST);break; //case 'removeWine': removeWine($_POST);break; case 'addInventory': addInventory($_POST, $dbh); break; case 'removeInventory': removeInventory($_POST, $dbh); break; case 'transferInventory': transferInventory($_POST, $dbh); break; case 'findWineByUPC': findWineByUPC($_POST, $dbh); break; case 'summaryByUPC': summaryByUPC($_POST, $dbh); break; case 'completeInventory': completeInventory($_POST, $dbh);