diff --git a/wms/contract/contract-new-apply.php b/wms/contract/contract-new-apply.php index ab74027c..00a9ddb2 100644 --- a/wms/contract/contract-new-apply.php +++ b/wms/contract/contract-new-apply.php @@ -1,4 +1,7 @@ +<<<<<<< HEAD +======= +>>>>>>> 7b37600f (合約書申請 新梯 1116) prepare($sql_str); @@ -66,6 +70,36 @@ if(empty($contract_new_apply)){ +======= +$sql_str = "SELECT pricereview_main.*, account.name as accountname + FROM pricereview_main + JOIN account ON pricereview_main.person = account.accountid + WHERE pricereview_main.id = :id"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':id',$id); +$stmt->execute(); +$contract = $stmt->fetch(PDO::FETCH_ASSOC); + +$accounttype = "M"; +$sql_str = "SELECT * FROM account WHERE accounttype = :accounttype"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':accounttype',$accounttype); +$stmt->execute(); +$persons = $stmt->fetchAll(PDO::FETCH_ASSOC); + +$sql_str = "SELECT * FROM hope_elevator_customer WHERE vol_no = :vol_no ORDER BY created_at DESC"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':vol_no', $contract['contractno']); +$stmt->execute(); +$customer = $stmt->fetch(PDO::FETCH_ASSOC); +print_r($customer); +?> + + + + + +>>>>>>> 7b37600f (合約書申請 新梯 1116)
未填寫
+未填寫
未填寫
未填寫
+<<<<<<< HEAD +======= +未填寫
+未填寫
未填寫
+未填寫
+未填寫
未填寫
未填寫
+未填寫
+未填寫
+
+ 銷售 + |
+
+ 訂金 + |
+
+ 簽約後X天付訂金 + |
+
+ 合約日 + |
+
+ 30天 + |
+
+ 30天 + |
+
+ 20% + |
+
+ 636000 + |
+
+ 銷售 + |
+
+ 二次款 + |
+
+ 簽約後X天付二次款 + |
+
+ 合約日 + |
+
+ 30天 + |
+
+ 30天 + |
+
+ 0%% + |
+
+ 0 + |
+
+ 銷售 + |
+
+ 貨到款 + |
+
+ 貨抵工地付貨到款 + |
+
+ 出貨日 + |
+
+ - + |
+
+ 30天 + |
+
+ 50% + |
+
+ 1590000 + |
+
+ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | +
+ 安裝 + |
+
+ 安裝款 + |
+
+ 安裝完成後X天收款 + |
+
+ 竣檢日 + |
+
+ 30天 + |
+
+ 30天 + |
+
+ 20% + |
+
+ 636000 + |
+
+ 安裝 + |
+
+ 尾款 + |
+
+ 交車後X天付尾款 + |
+
+ 交車日 + |
+
+ 0天 + |
+
+ 30天 + |
+
+ 10% + |
+
+ 318000 + |
+
+ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | +
業務部協理 | +<<<<<<< HEAD已退件 @@ -430,6 +718,15 @@ if(empty($contract_new_apply)){ | 營業員 | +======= + | 已通過 | +業務部承辦人 | +已通過 | +營業經理 | +已通過 | +營業員 | +已通過 | +>>>>>>> 7b37600f (合約書申請 新梯 1116)