diff --git a/wms/mkt/pricereview-index.php b/wms/mkt/pricereview-index.php index 1026efe8..53364962 100644 --- a/wms/mkt/pricereview-index.php +++ b/wms/mkt/pricereview-index.php @@ -497,6 +497,10 @@ if ($data) : } elseif ($data['status'] == 'YN' && $data['id'] == $maxContractID) { ?> 重填價審 + + 重新提交 fetch(PDO::FETCH_ASSOC); $vol_no = $main['contractno']; } -if($main && $main['status'] == 'YS'){ +if((!($main['status'] == 'Y1' || $main['status'] == 'YY')) ){ echo ""; exit; } @@ -274,7 +274,7 @@ if($main){ $stmt->bindParam(':form_id', $id); $stmt->execute(); $flow = $stmt->fetch(PDO::FETCH_ASSOC); - $form_key = $flow['form_key']; + $form_key = $flow['form_key'] ?? null; }else{ //獲取有望客戶電梯規格 $sql_str = "SELECT