diff --git a/mkt/pricereview-create.php b/mkt/pricereview-create.php index 244613c6..0b0df200 100644 --- a/mkt/pricereview-create.php +++ b/mkt/pricereview-create.php @@ -1,549 +1,571 @@ - - -
-Please fill up the required field!

"; - } else { - echo "

Record has added successfully

"; - } -} -*/ -?> - - - -
" enctype="multipart/form-data"> -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-
-
- -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- - - - - - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
項次電梯人乘停數速度數量B/P(含稅)金額(含稅)價審%備註
1 - - - - - - - -
-
-
- - - - - - - - - - - - - - -
合計
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
付款辦法
1、訂金20%30天期票,簽約後30日內兌現
2、二次款40%30天期票,電梯出貨前兌現
3、貨到付款20%30天期票,電梯使用前兌現
4、安裝完畢款10%30天期票,電梯交車前兌現
5、尾款10%30天期票,取得許可函後30日內兌現
- -
- - - - - - - - -
-
- - + +
+ Please fill up the required field!

"; + } else { + echo "

Record has added successfully

"; + } +} +*/ + ?> + + + +
" enctype="multipart/form-data"> +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
項次電梯人乘停數速度數量B/P(含稅)金額(含稅)價審%備註
1 + + + + + + + +
+
+
+ + + + + + + + + + + + + + +
合計
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
付款辦法
1、訂金20%30天期票,簽約後30日內兌現
2、二次款40%30天期票,電梯出貨前兌現
3、貨到付款20%30天期票,電梯使用前兌現
4、安裝完畢款10%30天期票,電梯交車前兌現
5、尾款10%30天期票,取得許可函後30日內兌現
+ +
+ + + + + + + + +
+
+ + \ No newline at end of file diff --git a/wms/mkt/pricereview-create.php b/wms/mkt/pricereview-create.php index 6680345a..0e962cb3 100644 --- a/wms/mkt/pricereview-create.php +++ b/wms/mkt/pricereview-create.php @@ -12,7 +12,7 @@ if ($row = mysqli_fetch_row($res)) { } else { echo ""; exit; } @@ -24,7 +24,7 @@ $row = mysqli_fetch_row($res); if ($row[0] > 0) { echo ""; exit; } @@ -39,7 +39,7 @@ if ($row = mysqli_fetch_assoc($res)) { mysqli_free_result($res); if (count($last_pr_arr) > 0) { $last_pr_arr["qty_total"] = $last_pr_arr["pay_all_scale"] = $last_pr_arr["pay_all_amount"] = 0; - $sql = "select * from pricereview_item where mid = '".$last_pr_arr["id"]."'"; + $sql = "select * from pricereview_item where mid = '" . $last_pr_arr["id"] . "'"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_assoc($res)) { $last_pritem_arr[$row["item_group"]][$row["item_no"]] = $row; @@ -49,7 +49,7 @@ if (count($last_pr_arr) > 0) { } mysqli_free_result($res); - $sql ="select * from pricereview_pay where mid = '".$last_pr_arr["id"]."' order by pay_kind"; + $sql = "select * from pricereview_pay where mid = '" . $last_pr_arr["id"] . "' order by pay_kind"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_assoc($res)) { $last_prpay_arr[$row["pay_kind"]] = $row; @@ -101,7 +101,7 @@ while ($row = mysqli_fetch_row($res)) { $hope_elev_spec_arr[$row[0]]["spec_num"] = $row[6]; $hope_elev_spec_arr[$row[0]]["spec_price"] = $row[7]; $hope_elev_spec_arr[$row[0]]["op"] = $op_arr[$row[8]]; - $hope_elev_spec_amt += $row[6]*$row[7]; + $hope_elev_spec_amt += $row[6] * $row[7]; $hope_elev_spec_num += $row[6]; } mysqli_free_result($res); @@ -127,7 +127,7 @@ if ($last_pr_arr) { $price_total = $last_pr_arr["price_total"]; $qty_total = $last_pr_arr["qty_total"]; } else { - $price_total = $hope_elev_spec_amt;// + $hope_elev_opt_amt; + $price_total = $hope_elev_spec_amt; // + $hope_elev_opt_amt; $qty_total = $hope_elev_spec_num; } @@ -161,16 +161,16 @@ foreach ($opt_data_arr as $k => $v) { if ($v3["optional"] == "1") $optional = "標"; elseif ($v3["optional"] == "2") $optional = "選"; $option_str .= ""; - $option_str .= "".$k2.""; - $option_str .= "".$v3["spec"].""; - $option_str .= "".$v3["memo"].""; - $option_str .= "".$optional.""; - $option_str .= "".$v3["unit"].""; - $option_str .= "".number_format($v3["price"]).""; + $option_str .= "" . $k2 . ""; + $option_str .= "" . $v3["spec"] . ""; + $option_str .= "" . $v3["memo"] . ""; + $option_str .= "" . $optional . ""; + $option_str .= "" . $v3["unit"] . ""; + $option_str .= "" . number_format($v3["price"]) . ""; $option_str .= ""; } } - /* + /* $group_nums = count($v2); $i = 1; foreach ($v2 as $k3 => $v3) { @@ -195,199 +195,231 @@ foreach ($opt_data_arr as $k => $v) { $option_str .= ""; ?>