diff --git a/wms/wipwhole-change-planning-customer-name-submit.php b/wms/wipwhole-change-planning-customer-name-submit.php index 8dbffb67..91c312a9 100644 --- a/wms/wipwhole-change-planning-customer-name-submit.php +++ b/wms/wipwhole-change-planning-customer-name-submit.php @@ -2,7 +2,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $checkStatus = checkStatus($link, $id, $user_id); - if (!empty($_POST['custom_name'])) { + if (!empty($_POST['custom_name'] && $_POST['assign_status'] !== 'Z')) { if ($checkStatus) { $customer_planning_verify_file = fileIUpload("customer_planning_verify_file");