Browse Source

有望客戶修正

main
10994015 1 year ago
parent
commit
a52e631f70
  1. 2
      wms/mkt/pricereviewCheck.php
  2. 18
      wms/mkt/pricereviewCreate.php

2
wms/mkt/pricereviewCheck.php

@ -7,7 +7,7 @@ if(!isset($_GET['id'])){
} }
$id = $_GET['id']; $id = $_GET['id'];
$sql_str = "SELECT pricereview_main.*, account.name as person_name FROM pricereview_main LEFT JOIN account ON pricereview_main.person = account.accountid WHERE pricereview_main.id = :id"; $sql_str = "SELECT pricereview_main.*, account.name as person_name FROM pricereview_main LEFT JOIN account ON pricereview_main.person = account.accountid WHERE pricereview_main.id = :id AND pricereview_main.status <> 'D'";
$stmt = $conn->prepare($sql_str); $stmt = $conn->prepare($sql_str);
$stmt->bindParam(':id', $id); $stmt->bindParam(':id', $id);
$stmt->execute(); $stmt->execute();

18
wms/mkt/pricereviewCreate.php

@ -57,7 +57,23 @@ if($user_id !== $hope_customer['salesman'] && $user_id !== "M0174"){
echo "<script>alert('無權限編輯此紀錄!您不是該單營業員。');window.history.go(-1);</script>"; echo "<script>alert('無權限編輯此紀錄!您不是該單營業員。');window.history.go(-1);</script>";
exit; exit;
} }
if($hope_customer['vol_no']=="" ||
$hope_customer['customer']=="" ||
$hope_customer['manager']=="" ||
$hope_customer['uscc']=="" ||
$hope_customer['source']=="" ||
$hope_customer['linkman']=="" ||
$hope_customer['lm_tel']=="" ||
$hope_customer['salesman']=="" ||
$hope_customer['num']=="" ||
$hope_customer['pre_order_date']=="" ||
$hope_customer['status']=="" ||
$hope_customer['address']=="" ||
$hope_customer['case_name']==""
){
echo "<script>alert('有望客戶資料不完整,請先填完整');window.history.go(-1);</script>";
exit;
}
$hope_elevators = []; $hope_elevators = [];
$total_spec = 0; $total_spec = 0;
$selectedOptions = []; $selectedOptions = [];

Loading…
Cancel
Save