<?php require_once dirname(__FILE__) . '/../function/func_shipment.php'; echo '<pre>'; print_r($_POST); echo '</pre>'; $idproduct_order = $_GET['idproduct_order']; $idname_factory = $_POST['name_factory']; $idorder_p = $_POST['idorder_p']; $date_order_p = $_POST['date_order_p']; $name_shop = $_POST['name_shop']; $checkEditProduct_order = editProduct_order($idproduct_order, $idname_factory, $idorder_p, $date_order_p, $name_shop); if ($checkEditProduct_order) { header("location: ../shipment2.php?p=idproduct_order&action=editCompleted"); } else { header("location: ../shipment2.php?p=idproduct_order&action=editError"); }
} $_SESSION["product"][$_SESSION["countProduct"]]["DifferencePer"] = ""; $_SESSION["product"][$_SESSION["countProduct"]]["DifferenceBath"] = $diffOld; $_SESSION["product"][$_SESSION["countProduct"]]["total"] = ($val_price * 1 + $diffOld * $amountSSS) * floor($amountUnitNew); } $_SESSION["product"][$_SESSION["countProduct"]]["price"] = $val_price * 1; $_SESSION["product"][$_SESSION["countProduct"]]["total_price"] = $val_price * floor($amountUnitNew); $_SESSION["product"][$_SESSION["countProduct"]]["type"] = $typeOld; } } } /* $amountLast = $amountUnitNew; */ if ($amountUnitNew >= 1) { $count++; } } $amountLatest = $amountUnitNew - $idamount_product_order; //echo $amountLatest; //echo $count; } } } } if ($_GET['p'] === "editProduct") { $checkEdit_Amount_Product_order = editProduct_order($idproduct_order, $idamount_product_order, $idunit, $price_unit); } /* if ($checkEdit_Amount_Product_order) { header("location: ../add_shipment3.php?idshipment_period=" . $idshipment_period . "&idfactory=" . $idfactory . "&price=" . $price . "&status_shipment=" . $status_shipment_factory . "&action=editProduct_orderCompleted"); } else { header("location: ../add_shipment3.php?idshipment_period=" . $idshipment_period . "&idfactory=" . $idfactory . "&price=" . $price . "&status_shipment=" . $status_shipment_factory . "&action=editProduct_orderError"); } */