<?php require_once dirname(__FILE__) . '/../function/func_shipment.php'; echo '<pre>'; print_r($_POST); echo '</pre>'; $idorder_transport = $_GET['idorder_transport']; $idshipment_period = $_GET['idshipment_period']; $idfactory = $_GET['idfactory']; $price = $_GET['price']; $check_idorder_transport_hidden = $_POST['check_idorder_transport_hidden']; foreach ($check_idorder_transport_hidden as $value) { $editStatus_check_price = editStatus_check_price($value); } $getUpdateStatusShipmentByID = getUpdateStatusShipmentByID($idfactory, $idshipment_period); $val_status_shipment = $getUpdateStatusShipmentByID['status_shipment']; echo '<pre>'; echo $val_status_shipment; echo '</pre>'; if (editStatus_check_price) { header("location: ../add_shipment3.php?idshipment_period=" . $idshipment_period . "&idfactory=" . $idfactory . "&idorder_transport=" . $idorder_transport . "&price=" . $price . "&status_shipment=" . $val_status_shipment . "&action=editStatus_check_priceCompleted"); } else { header("location: ../add_shipment3.php?idshipment_period=" . $idshipment_period . "&idfactory=" . $idfactory . "&idorder_transport=" . $idorder_transport . "&price=" . $price . "&status_shipment=" . $val_status_shipment . "&action=editStatus_check_priceError"); }
echo '<pre>'; print_r($getPayFactory); echo '</pre>'; echo $val_idpay_factory; $delPayfactory = delPayfactory($val_idpay_factory); //ลบข้อมูลการจ่ายเงิน //เริ่มต้นการเปลี่ยนสถานะใน order_transport $getProduct_waitchangeStatusShipment = getProduct_waitchangeStatusShipment($idfactory, $idshipment_period); //ค้นหาสินค้า $i1 = 0; foreach ($getProduct_waitchangeStatusShipment as $value) { $i1++; $val_name_product = $value['name_product']; $val_idorder_transport = $value['idorder_transport']; echo $val_name_product; $editStatus_check_price = editStatus_check_price($val_idorder_transport); //เปลี่ยนสถานะรายการสินค้า } //สิ้นสุดการเปลี่ยนสถานะใน order_transport //เริ่มต้นการเปลี่ยนสถานะใน product_refunds $getProduct_waitchangeStatusRefund = getProduct_waitchangeStatusRefund($idfactory, $idshipment_period); $i2 = 0; foreach ($getProduct_waitchangeStatusRefund as $value) { $i2++; $val_name_product = $value['name_product']; $val_idproduct_refunds = $value['idproduct_refunds']; echo $val_name_product; $editStatus_unreturn = editStatus_unreturn($val_idproduct_refunds); } //สิ้นสุดการเปลี่ยนสถานะใน product_refunds //updatestatusShipment