diff --git a/.gitignore b/.gitignore index 2227fb1c..098a9a18 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ wms/contract/.env /pdfs/ wms/database.php workflow/log/ +wms/header.php +wms/loginapi.php diff --git a/wms/T8_APItest.php b/wms/T8_APItest.php index 78405c04..191dba3b 100644 --- a/wms/T8_APItest.php +++ b/wms/T8_APItest.php @@ -26,11 +26,12 @@ echo "ii"; "CurrId": "RMB", "CurrLAmount":5, "TaxId": "ST005", - "PersonId": "M0006", + "PersonId": "M0012", "DeptId": "220", "CompId": "1001", "CreditAgeDate": 20230930, - "RecBizPartnerId": "03051501" + "RecBizPartnerId": "03051501", + }] }, { diff --git a/wms/WriteOff.xlsx b/wms/WriteOff.xlsx index b42c2e6e..c02cdf37 100644 Binary files a/wms/WriteOff.xlsx and b/wms/WriteOff.xlsx differ diff --git a/wms/cont/sign_list.php b/wms/cont/sign_list.php index a1f2ad4d..0d942a5e 100644 --- a/wms/cont/sign_list.php +++ b/wms/cont/sign_list.php @@ -133,7 +133,7 @@ if ($data) : //echo " select f_return_name(current_assigner) signer from subflow where form_key='". $row['form_key'] ."'"; ". (is_array($row['form_key'])?'': $row['form_key']) ." list($signer)=mysqli_fetch_array(mysqli_query($link, "select max(f_return_name(current_assigner) ) signer from subflow where form_key='". $row['form_key'] ."'" )); - echo "
- | 小機房 | -MAE100 | -單位:萬元 | -|
規 格 | -標準價 | -(±1S) | -1、1.0最低到5停;5停以下以5停計。 - 2、1.5及1.75最低到8停;8停以下以8停計。 - 3、1.5變為1.75---》+5.4萬/台;加減1停同1.5。 - 4、經理權限為發佈價之80%、業務部協理權限為75%。 |
- |
MAE100-6*7-CO60 | -89.0 | -4.0 | -||
MAE100-8*7-CO60 | -89.1 | -4.0 | -||
MAE100-9*7-CO60 | -89.7 | -4.0 | -||
MAE100-10*7-CO60 | -90.4 | -4.0 | -||
MAE100-11*7-CO60 | -92.0 | -4.0 | -||
MAE100-12*7-CO60 | -95.6 | -4.0 | -||
MAE100-13*7-CO60 | -98.0 | -4.1 | -||
MAE100-15*7-CO60 | -98.5 | -4.1 | -||
MAE100-17*7-CO60 | -133.6 | -5.1 | -||
MAE100-20*7-CO60 | -153.2 | -5.4 | -||
MAE100-24*7-CO60 | -158.4 | -5.4 | -||
- | ||||
規 格 | -標準價 | -(±1S) | -規格 | -標準價 | -
MAE100-8*10-CO90 | -101.5 | -4.0 | -MAE100-8*10-CO105 | -106.3 | -
MAE100-9*10-CO90 | -102.1 | -4.0 | -MAE100-9*10-CO105 | -107.4 | -
MAE100-10*10-CO90 | -103.0 | -4.0 | -MAE100-10*10-CO105 | -108.6 | -
MAE100-11*10-CO90 | -108.4 | -4.0 | -MAE100-11*10-CO105 | -114.0 | -
MAE100-12*10-CO90 | -110.0 | -4.0 | -MAE100-12*10-CO105 | -115.5 | -
MAE100-13*10-CO90 | -112.2 | -4.1 | -MAE100-13*10-CO105 | -117.8 | -
MAE100-15*10-CO90 | -113.4 | -4.1 | -MAE100-15*10-CO105 | -119.0 | -
MAE100-17*10-CO90 | -151.1 | -5.1 | -MAE100-17*10-CO105 | -156.7 | -
MAE100-20*10-CO90 | -173.0 | -5.4 | -MAE100-20*10-CO105 | -178.6 | -
MAE100-24*10-CO90 | -192.0 | -5.4 | -MAE100-24*10-CO105 | -198.0 | -
- | 無機房 | -MAM200 | -單位:萬元 | -|
規 格 | -標準價 | -(±1S) | -1、1.0最低到5停;5停以下以5停計。 - 2、1.5及1.75最低到8停;8停以下以8停計。 - 3、1.5變為1.75---》+5.4萬/台;加減1停同1.5。 - 4、營業員權限為發佈價之73% |
- |
MAM200-8*7-CO60 | -117.5 | -4.5 | -||
MAM200-9*7-CO60 | -118.7 | -4.5 | -||
MAM200-10*7-CO60 | -120.1 | -4.5 | -||
MAM200-11*7-CO60 | -121.2 | -4.5 | -||
MAM200-12*7-CO60 | -122.5 | -4.5 | -||
MAM200-13*7-CO60 | -123.8 | -4.5 | -||
MAM200-15*7-CO60 | -124.9 | -4.5 | -||
MAM200-17*7-CO60 | -187.4 | -6.4 | -||
MAM200-20*7-CO60 | -204.8 | -6.4 | -||
MAM200-24*7-CO60 | -208.5 | -6.4 | -||
MAM200-8*10-CO90 | -133.4 | -4.9 | -MAM200-8*10-CO105 | -139.1 | -
MAM200-9*10-CO90 | -134.5 | -4.9 | -MAM200-9*10-CO105 | -140.2 | -
MAM200-10*10-CO90 | -135.8 | -4.9 | -MAM200-10*10-CO105 | -141.5 | -
MAM200-11*10-CO90 | -137.1 | -4.9 | -MAM200-11*10-CO105 | -142.8 | -
MAM200-12*10-CO90 | -138.2 | -4.9 | -MAM200-12*10-CO105 | -143.9 | -
MAM200-13*10-CO90 | -140.0 | -4.9 | -MAM200-13*10-CO105 | -145.7 | -
MAM200-15*10-CO90 | -141.2 | -4.9 | -MAM200-15*10-CO105 | -146.9 | -
MAM200-17*10-CO90 | -202.8 | -6.5 | -MAM200-17*10-CO105 | -208.5 | -
MAM200-20*10-CO90 | -220.2 | -6.5 | -MAM200-20*10-CO105 | -225.9 | -
MAM200-24*10-CO90 | -223.9 | -6.5 | -MAM200-24*10-CO105 | -229.6 | -
小電梯 | -MAH100 | -單位:萬元 | -
規 格 | -標準價 | -(±1S) | -
MAH100-6*5-2S45 | -73.2 | -2.5 | -
MAH100-8*5-2S45 | -83.2 | -2.5 | -
- | - | - |
- | - | - |
- | - | - |
- | - | - |
註: - 1、最低到3停;2停以3停計。 - 2、經理權限為發佈價之80%、業務部協理權限為75%。 |
- - |
- | 高速梯 | -單位:萬元 | -
規 格 | -標準價 | -(±1S) | -
MAE100-12*20-CO120 | -180.0 | -5.0 | -
MAE100-13*20-CO120 | -181.3 | -5.0 | -
MAE100-15*20-CO120 | -182.7 | -5.0 | -
MAE100-17*20-CO120 | -217.1 | -6.3 | -
MAE100-20*20-CO120 | -225.6 | -6.4 | -
MAE100-24*20-CO120 | -240.2 | -6.5 | -
MAE100-12*20-CO150 | -223.0 | -6.1 | -
MAE100-13*20-CO150 | -224.1 | -6.1 | -
MAE100-15*20-CO150 | -225.4 | -6.1 | -
MAE100-17*20-CO150 | -239.9 | -6.5 | -
MAE100-20*20-CO150 | -244.3 | -6.5 | -
MAE100-24*20-CO150 | -253.3 | -6.5 | -
註: 1、2.0及2.5最低到15停;15停以下以15停計。 |
- - | |
2、P-12(含)以下以P-13計。 | -- | |
3、經理權限為發佈價之80%、業務部協理權限為75%。 | -- | |
- | - | - |
- | 小機房貨梯 | -單位:萬元 | -
規 格 | -標準價 | -(±1S) | -
MAF100-750*3-2S45 | -114.3 | -5.8 | -
MAF100-750*3-2S60 | -115.5 | -5.8 | -
MAF100-1000*3-2S45 | -136.4 | -8.7 | -
MAF100-1000*3-2S60 | -138.5 | -8.7 | -
MAF100-1500*3-2S45 | -171.4 | -9.7 | -
MAF100-1500*3-2S60 | -175.5 | -9.7 | -
MAF100-2000*3-2S45 | -195.3 | -10.0 | -
MAF100-2000*3-2S60 | -198.5 | -10.0 | -
MAF100-2500*3-2S45 | -286.3 | -15.1 | -
MAF100-2500*3-2S60 | -288.3 | -15.1 | -
MAF100-3000*3-2S45 | -307.7 | -16.3 | -
MAF100-3000*3-2S60 | -309.5 | -16.3 | -
MAF100-3500*3-2S45 | -365.5 | -18.2 | -
MAF100-3500*3-2S60 | -368.5 | -18.2 | -
MAF100-4000*3-2S45 | -407.5 | -20.5 | -
MAF100-4000*3-2S60 | -409.5 | -20.5 | -
MAF100-5000*3-2S45 | -520.5 | -25.5 | -
MAF100-5000*3-2S60 | -525.8 | -25.5 | -
註: 1、最低為2停 |
- - | - |
2、經理權限為發佈價之80%、業務部協理權限為75%。 | -- |
- | 平台梯 | -- | 單位:萬元 | -
規 格 | -標準價 | -提升高度標準 | -備註 | -
MAP100-280*2-CO09 | -78.5 | -3.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-280*3-CO09 | -86.5 | -6.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-280*4-CO09 | -94.5 | -9.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-280*5-CO09 | -102.5 | -12.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-280*2-CO09 | -80.2 | -3.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-280*3-CO09 | -88.5 | -6.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-280*4-CO09 | -96.5 | -9.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-280*5-CO09 | -104.5 | -12.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-320*2-CO09 | -82.0 | -3.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-320*3-CO09 | -90.0 | -6.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-320*4-CO09 | -98.0 | -9.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-320*5-CO09 | -106.0 | -12.0 | -岩板;L型開門另加3萬元/台 | -
MAP100-320*2-CO09 | -84.0 | -3.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-320*3-CO09 | -92.0 | -6.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-320*4-CO09 | -100.0 | -9.0 | -人造皮革;L型開門另加3萬元/台 | -
MAP100-320*5-CO09 | -108.0 | -12.0 | -人造皮革;L型開門另加3萬元/台 | -
- | - | - | - |
- | - | - | - |
註: 1、最低為2停。 |
- - | - | - |
2、標準價格為自動門。 | -- | - | - |
3、經理權限為發佈價之80%、業務部協理權限為75%。 | -- | - | |
- | - | - | - |
名稱 | -規格 | -備註 | -配置 | -單位 | -定價 | -
---|---|---|---|---|---|
".$k2." | "; - echo "".$v3["spec"]." | "; - echo "".$v3["memo"]." | "; - echo "".$optional." | "; - echo "".$v3["unit"]." | "; - echo "".number_format($v3["price"])." | "; - echo "
名稱 | -規格 | -備註 | -配置 | -單位 | -定價 | -
---|---|---|---|---|---|
'.$opt_kind_arr[$k].' | |||||
".$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.' | '; - } else { - $option_str .= ' '; - } - $option_str .= "".$v3["spec"]." | "; - $option_str .= "".$v3["memo"]." | "; - $option_str .= "".$optional." | "; - $option_str .= "".$v3["unit"]." | "; - $option_str .= "".number_format($v3["price"])." | "; - $option_str .= "
Record has added successfully
"; - } -} -*/ -?> - -名稱 | -規格 | -備註 | -配置 | -單位 | -定價 | -
---|---|---|---|---|---|
'.$opt_kind_arr[$k].' | |||||
".$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.' | '; - } else { - $option_str .= ' '; - } - $option_str .= "".$v3["spec"]." | "; - $option_str .= "".$v3["memo"]." | "; - $option_str .= "".$optional." | "; - $option_str .= "".$v3["unit"]." | "; - $option_str .= "".number_format($v3["price"])." | "; - $option_str .= "
項次 | -卷號 | -營業員 | -客戶名稱 | -案件名稱 | -牌價總額 | -售價總額 | -價率 | -預定成交日 | -預定交期 | -建檔人 | -建檔時間 | -功能 | -區經理 | -業務承辦人 | -業務部協理 | -總經理 | -狀態 | -合約書申請 | - -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | % | -- | - | - | - | - - 修改 - 刪除 - - 填規調 - - " class="btn btn-warning btn-sm">檢視 - -填規調 - - | -
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if ($ss_arr["sign_st"]==1 && in_array($user_id, $ss_arr["sign_nt"]) && $data["status"]=="YS") { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - /* - if ($sign_st==1 && $sign_nt==$user_id) { - $str = ""; - $str = "".$str.""; - } else if ($sign_st > 1 || $data['last_check_result']) { // 過了這關或已完成流程 - list($uperson, $ustatus, $udtte) = explode(",", $sign1); - if ($ustatus == "Y") $str = ""; - else $str = ""; - $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else $str = "--"; - */ - - /* - if ($data["checker_1_result"] == "Y") { - $str = ""; - } elseif ($data["checker_1_result"] == "N") { - $str = ""; - } else { - $str = ""; - } - if (!$oneself) { - $str = "".$str.""; - $str .= " ".$data["checker_1"]." ".$data["checker_1_dt"]; - } else { - if ($data["checker_1_result"]) { - $str = "".$str.""; - $str .= " ".$data["checker_1"]." ".$data["checker_1_dt"]; - } - else $str = "--"; - }*/ - //echo $str; - ?> - |
-
- ", $sign2);
- foreach ($sign2_arr as $v) {
- list($uperson, $ustatus, $udtte) = explode(",", $v);
- if ($ustatus == "Y" || $ustatus == "N") {
- break;
- }
- }
- }
- if ($ustatus) {
- if ($ustatus == "Y") $str = "";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if (($data["status"] == "YS") && ($ss_arr["sign_st"] == 2) && (in_array($user_id, $ss_arr["sign_nt"]))) { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - - /* - if ($sign_st==2 && $sign_nt==$user_id) { - $str = ""; - $str = "".$str.""; - } else if ($sign_st > 2 || $data['last_check_result']) { - list($uperson, $ustatus, $udtte) = explode(",", $sign2); - if ($ustatus == "Y") $str = ""; - else $str = ""; - $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else $str = "--"; - */ - - /* - if ($data["checker_2_result"] == "Y") { - $str = ""; - } elseif ($data["checker_2_result"] == "N") { - $str = ""; - } else { - $str = ""; - } - if (!$oneself) { - $str = "".$str.""; - $str .= " ".$data["checker_2"]." ".$data["checker_2_dt"]; - } else { - if ($data["checker_2_result"]) { - $str = "".$str.""; - $str .= " ".$data["checker_2"]." ".$data["checker_2_dt"]; - } - else $str = "--"; - } - */ - //echo $str; - ?> - |
-
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if (($data["status"] == "YS") && ($ss_arr["sign_st"] == 3) && (in_array($user_id, $ss_arr["sign_nt"]))) { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - /* - $str = ""; - if ($sign_st==3 && $sign_nt==$user_id) { - $str = ""; - $str = "".$str.""; - } else $str = "--"; - */ - - /* - if ($data["checker_3_result"] == "Y") { - $str = ""; - } elseif ($data["checker_3_result"] == "N") { - $str = ""; - } else { - $str = ""; - } - if (!$oneself) { - $str = "".$str.""; - $str .= " ".$data["checker_3"]." ".$data["checker_3_dt"]; - } else { - if ($data["checker_3_result"]) { - $str = "".$str.""; - $str .= " ".$data["checker_3"]." ".$data["checker_3_dt"]; - } - else $str = "--"; - } - */ - //echo $str; - ?> - |
-
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if (($data["status"] == "YS") && ($ss_arr["sign_st"] == 4) && (in_array($user_id, $ss_arr["sign_nt"]))) { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - ?> - |
- - - | - - 合約書申請 - - | -
您有待簽核案件,請至客戶管理 > 價格審查_新梯,點擊「待簽核」進行作業,謝謝!
"; - //print_r($mail_list); - $sendmail->sendx($title, $content, $mail_list); - } - } - if ($end_flow) { - end_flow("prm", "prm01", $id, $contractno_h); - } - } - mysqli_close($link); - echo ""; -} diff --git a/wms/mkt/mkt/pricereview-record-submit.php b/wms/mkt/mkt/pricereview-record-submit.php deleted file mode 100644 index d1367898..00000000 --- a/wms/mkt/mkt/pricereview-record-submit.php +++ /dev/null @@ -1,319 +0,0 @@ - $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - // 同客戶同電梯不能重覆價審 - /* - $warr = []; - $fp_id_str = ""; - $fp_id_arr = explode(",", $fp_id_all); - foreach ($fp_id_arr as $val) { - if ($val && $val>0) $fp_id_str .= $val.","; - } - $fp_id_str = rtrim($fp_id_str, ","); - $db_query = "select i.item_spec from pricereview_main m, pricereview_item i "; - $db_query .= "where m.id = i.mid and contractno = '$contractno' and fp_id in ($fp_id_str) and last_check_result <> 'N'"; - $res = mysqli_query($link, $db_query); - while ($row = mysqli_fetch_row($res)) { - $warr[] = $row[0]; - } - $warning = implode("、", $warr); - if ($warning) { - echo ""; - } - */ - - $price_total = str_replace(",", "", $price_total); - $price_lowest = str_replace(",", "", $price_lowest); - $pay_amount = str_replace(",", "", $pay_amount); - $pay_all_amount = str_replace(",", "", $pay_all_amount); - $special_fee = str_replace(",", "", $special_fee); - if (empty($deposit_rate)) $deposit_rate = 0; - if (empty($keep_rate)) $keep_rate = 0; - if (empty($warranty_rate)) $warranty_rate = 0; - if (empty($special_fee)) $special_fee = 0; - $status = ($pmstatus == "tosign") ? "YS" : "Y1"; // YS:提交 Y1:保存 - $st_str = ($status == "YS") ? "提交" : "保存"; - $create_at = date("Y-m-d H:i:s"); - $tds = date("Y-m-d"); - - // 客戶資料 - $sql = "select vol_no, salesman, customer, address from hope_elevator_customer where vol_no = '$vol_no'"; - $res = mysqli_query($link, $sql); - $row = mysqli_fetch_row($res); - list($contractno, $person, $company, $address) = $row; - mysqli_free_result($res); - - // 同一卷號只限一筆價審 - $sql = "select count(*) from pricereview_main where contractno = '$contractno' and status in ('Y1', 'YS', 'YY')"; - $res = mysqli_query($link, $sql); - $row = mysqli_fetch_row($res); - if ($row[0] > 0) { - echo ""; - exit; - } - - // 上傳報價單 - $target_dir = "pricereview-uploads/"; - if ($_FILES["attatch1"]["error"] == 0) { - $file_name = $_FILES["attatch1"]["name"]; - $temp_file_name = $_FILES["attatch1"]["tmp_name"]; - $file_size = $_FILES["attatch1"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file1 = $target_dir.$vol_no."-price-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$vol_no."-price-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_1 = move_uploaded_file($temp_file_name, $target_file1); - } else $target_file1 = ""; - - // 上傳附表一 - if ($_FILES["attatch2"]["error"] == 0) { - $file_name = $_FILES["attatch2"]["name"]; - $temp_file_name = $_FILES["attatch2"]["tmp_name"]; - $file_size = $_FILES["attatch2"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file2 = $target_dir.$vol_no."-appendix-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$vol_no."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_2 = move_uploaded_file($temp_file_name, $target_file2); - } else $target_file2 = ""; - - if (($target_file1 && !$upload_res_1) || ($target_file2 && !$upload_res_2)) { - echo ""; - exit; - } - - // 價格審查單-主文 pricereview_main - $db_query = "insert into pricereview_main(contractno, ekind, person, company, case_name, address, price_lowest, "; - $db_query .= "price_total, price_rate, special_fee, predeal_date, facilitok_date, penalty, deposit_rate, keep_rate, "; - $db_query .= "warranty_rate, memo, status, attatch1, attatch2, creater, create_at) values ("; - $db_query .= "'$contractno', '新梯', '$person', '$company', '$case_name', '$address', '$price_lowest', "; - $db_query .= "'$price_total', '$price_rate', '$special_fee', '$predeal_date', '$facilitok_date', '$penalty', '$deposit_rate', '$keep_rate', "; - $db_query .= "'$warranty_rate', '$memo', '$status', '$target_file1', '$target_file2', '$user_id', '$create_at')"; - $result = mysqli_query($link, $db_query); - $affected = mysqli_affected_rows($link); - if ($mid = mysqli_insert_id($link)) { - // 價格審查單-明細項目 pricereview_item:電梯 - $fp_id_arr = explode(",", $fp_id_all); - $fp_kind_arr = explode(",", $fp_kind_all); - $fp_seat_arr = explode(",", $fp_seat_all); - $fp_numberofstop_arr = explode(",", $fp_numberofstop_all); - $fp_speed_arr = explode(",", $fp_speed_all); - $item_weight_arr = explode(",", $item_weight_all); - $item_op_arr = explode(",", $item_op_all); - $item_spec_arr = explode(",", $item_spec_all); - $item_group_arr = explode(",", $item_group_all); - $item_unit_price_arr = explode(",", $item_unit_price_all); - $item_qty_arr = explode(",", $item_qty_all); - $item_qty_ori_arr = explode(",", $item_qty_ori_all); - $item_price_bp_arr = explode(",", $item_price_bp_all); - $item_price_ct_arr = explode(",", rtrim($item_price_ct_all, ",")); - $item_price_arr = explode(",", $item_price_all); - $gross_profit_arr = explode(",", $gross_profit_all); - $item_price_arr = $gross_profit_arr = []; // 先reset, 等審核才產出 - - // 如果售價變動或電梯數量異動,售價則平均分攤到每台 - $avg_fg = 0; - foreach ($item_price_bp_arr as $k => $v) { - if ($v && !isset($item_price_ct_arr[$k])) { - $avg_fg = 1; - break; - } - } - foreach ($item_qty_ori_arr as $k => $v) { - if ($v != $item_qty_arr[$k]) { - $avg_fg = 1; - break; - } - } - if ($price_total_ori != $price_total) $avg_fg = 1; - if ($avg_fg) { - $item_price_ct2_arr = []; - $price_total_item = 0; - foreach ($item_qty_arr as $k => $v) { - $price = floor(($price_total/array_sum($item_qty_arr))*$v); - $item_price_ct2_arr[] = $price; - if ($k < count($item_qty_arr)-1) $price_total_item += $price; - } - $item_price_ct2_arr[count($item_qty_arr)-1] = $price_total - $price_total_item; - $item_price_ct_arr = $item_price_ct2_arr; - } - - $item_no = 1; - for ($i=0; $i您有待簽核案件,請至客戶管理 > 價格審查_新梯,點擊「待簽核」進行作業,謝謝!
"; - $sendmail->sendx($title, $content, $mail_list); - } - } - } - } - - mysqli_close($link); - if ($affected > 0) { - echo ""; - } else { - echo ""; - } -} -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview-record-update.php b/wms/mkt/mkt/pricereview-record-update.php deleted file mode 100644 index d35069ed..00000000 --- a/wms/mkt/mkt/pricereview-record-update.php +++ /dev/null @@ -1,420 +0,0 @@ - $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - $price_total = str_replace(",", "", $price_total); - $price_lowest = str_replace(",", "", $price_lowest); - $pay_amount = str_replace(",", "", $pay_amount); - $pay_all_amount = str_replace(",", "", $pay_all_amount); - $special_fee = str_replace(",", "", $special_fee); - if (empty($deposit_rate)) $deposit_rate = 0; - if (empty($keep_rate)) $keep_rate = 0; - if (empty($warranty_rate)) $warranty_rate = 0; - if (empty($special_fee)) $special_fee = 0; - $status = ($pmstatus == "tosign") ? "YS" : "Y1"; // YS:提交 Y1:保存 - $st_str = ($status == "YS") ? "提交" : "保存"; - $create_at = date("Y-m-d H:i:s"); - $tds = date("Y-m-d"); - - // 同一卷號只限一筆價審 - $db_query = "select contractno from pricereview_main where id = '$id'"; - $result = mysqli_query($link, $db_query); - if ($row = mysqli_fetch_row($result)) { - $contractno = $row[0]; - $sql = "select count(*) from pricereview_main where contractno = '$contractno' and status in ('YS', 'YY')"; - $res = mysqli_query($link, $sql); - $row_c = mysqli_fetch_row($res); - if ($row_c[0] > 0) { - echo ""; - exit; - } - } else { - echo ""; - exit; - } - - // 上傳報價單 - $sql_atta = ""; - $target_dir = "pricereview-uploads/"; - if ($_FILES["attatch1"]["error"] == 0) { - $file_name = $_FILES["attatch1"]["name"]; - $temp_file_name = $_FILES["attatch1"]["tmp_name"]; - $file_size = $_FILES["attatch1"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file1 = $target_dir.$contractno."-price-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$contractno."-price-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_1 = move_uploaded_file($temp_file_name, $target_file1); - $sql_atta .= "attatch1 = '$target_file1', "; - } else { - $target_file1 = ""; - if ($file_price_del == 1) { - foreach (glob($target_dir.$contractno."-price-*") as $todelfile) { - unlink($todelfile); - } - $sql_atta = "attatch1 = NULL, "; - } - } - - // 上傳附表一 - if ($_FILES["attatch2"]["error"] == 0) { - $file_name = $_FILES["attatch2"]["name"]; - $temp_file_name = $_FILES["attatch2"]["tmp_name"]; - $file_size = $_FILES["attatch2"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file2 = $target_dir.$contractno."-appendix-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$contractno."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_2 = move_uploaded_file($temp_file_name, $target_file2); - $sql_atta .= "attatch2 = '$target_file2', "; - } else { - $target_file2 = ""; - if ($file_appendix_del == 1) { - foreach (glob($target_dir.$contractno."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $sql_atta = "attatch2 = NULL, "; - } - } - - if (($target_file1 && !$upload_res_1) || ($target_file2 && !$upload_res_2)) { - echo ""; - exit; - } - - // 價格審查單-主文 pricereview_main - $db_query = "update pricereview_main set price_lowest = '$price_lowest', price_total = '$price_total', price_rate = '$price_rate', special_fee = '$special_fee', predeal_date = '$predeal_date', "; - $db_query .= "facilitok_date = '$facilitok_date', penalty = '$penalty', deposit_rate = '$deposit_rate', keep_rate = '$keep_rate', warranty_rate = '$warranty_rate', "; - $db_query .= $sql_atta; - $db_query .= "memo = '$memo', status = '$status', creater = '$user_id', create_at = '$create_at' "; - $db_query .= "where id = '$id'"; - $result = mysqli_query($link, $db_query); - $affected = mysqli_affected_rows($link); - if ($affected > 0) { - // 價格審查單-明細項目 pricereview_item:電梯 - $fp_id_arr = explode(",", $fp_id_all); - $fp_kind_arr = explode(",", $fp_kind_all); - $fp_seat_arr = explode(",", $fp_seat_all); - $fp_numberofstop_arr = explode(",", $fp_numberofstop_all); - $fp_speed_arr = explode(",", $fp_speed_all); - $fp_item_arr = explode(",", $fp_item_all); // 留下的電梯ID - $fp_act_arr = explode(",", $fp_act_all); // U:update I:insert - $fp_del_arr = explode(",", $fp_del); // 刪除的電梯ID - $item_weight_arr = explode(",", $item_weight_all); - $item_op_arr = explode(",", $item_op_all); - $item_spec_arr = explode(",", $item_spec_all); - $item_unit_price_arr = explode(",", $item_unit_price_all); - $item_qty_arr = explode(",", $item_qty_all); - $item_qty_ori_arr = explode(",", $item_qty_ori_all); - $item_price_bp_arr = explode(",", $item_price_bp_all); - $item_price_ct_arr = explode(",", rtrim($item_price_ct_all, ",")); - $item_price_arr = explode(",", $item_price_all); - $gross_profit_arr = explode(",", $gross_profit_all); - $item_price_arr = $gross_profit_arr = []; // 先reset, 等審核才產出 - - // 如果售價變動或電梯數量異動,售價則平均分攤到每台 - $avg_fg = 0; - foreach ($item_price_bp_arr as $k => $v) { - if ($v && !isset($item_price_ct_arr[$k])) { - $avg_fg = 1; - break; - } - } - foreach ($item_qty_ori_arr as $k => $v) { - if ($v != $item_qty_arr[$k]) { - $avg_fg = 1; - break; - } - } - if ($price_total_ori != $price_total) $avg_fg = 1; - if ($avg_fg) { - $item_price_ct2_arr = []; - $price_total_item = 0; - foreach ($item_qty_arr as $k => $v) { - $price = floor(($price_total/array_sum($item_qty_arr))*$v); - $item_price_ct2_arr[] = $price; - if ($k < count($item_qty_arr)-1) $price_total_item += $price; - } - $item_price_ct2_arr[count($item_qty_arr)-1] = $price_total - $price_total_item; - $item_price_ct_arr = $item_price_ct2_arr; - } - - $to_ins_arr = []; // 準備要新增的項目 - if (count($fp_item_arr) > 0) { - foreach ($fp_item_arr as $k => $iid) { - if (empty($iid) && $fp_act_arr[$k] == "I") { - $to_ins_arr[] = $k; - } else { - $fp_kind_arr[$k] = (isset($fp_kind_arr[$k])) ? $fp_kind_arr[$k] : ""; - $fp_seat_arr[$k] = (isset($fp_seat_arr[$k])) ? $fp_seat_arr[$k] : ""; - $fp_numberofstop_arr[$k] = (isset($fp_numberofstop_arr[$k])) ? $fp_numberofstop_arr[$k] : ""; - $fp_speed_arr[$k] = (isset($fp_speed_arr[$k])) ? $fp_speed_arr[$k] : ""; - $note = $fp_kind_arr[$k].",".$fp_seat_arr[$k].",".$fp_numberofstop_arr[$k].",".$fp_speed_arr[$k]; - $db_query = "update pricereview_item set item_unit_price = '$item_unit_price_arr[$k]', item_qty = '$item_qty_arr[$k]', "; - $db_query .= "item_price_bp = '$item_price_bp_arr[$k]', item_price_ct = '$item_price_ct_arr[$k]', note = '$note', "; - $db_query .= "item_spec = '$item_spec_arr[$k]', item_weight = '$item_weight_arr[$k]', item_op = '$item_op_arr[$k]' "; - $db_query .= "where id = '$iid'"; - $result = mysqli_query($link, $db_query); - } - } - } - if (count($fp_del_arr) > 0) { - foreach ($fp_del_arr as $k => $iid) { - if (empty($iid)) continue; - $db_query = "delete from pricereview_item where id = '$iid'"; - $result = mysqli_query($link, $db_query); - } - } - if (count($to_ins_arr) > 0) { - $db_query = "select max(item_no) from pricereview_item where mid = '$id' and item_group = 'A'"; - $result = mysqli_query($link, $db_query); - $row = mysqli_fetch_row($result); - $nextno = $row[0] + 1; - foreach ($to_ins_arr as $v) { - if (!$fp_id_arr[$v]) $fp_id_arr[$v] = 0; - $note = $fp_kind_arr[$v].",".$fp_seat_arr[$v].",".$fp_numberofstop_arr[$v].",".$fp_speed_arr[$v]; - $db_query = "insert into pricereview_item (mid, price_id, item_no, item_spec, item_weight, item_op, item_group, item_unit_price, item_qty, item_price_bp, "; - $db_query .= "item_price_ct, item_price, gross_profit, gross_profit_rate, note) values ("; - $db_query .= "'$id', '$fp_id_arr[$v]', '$nextno', '$item_spec_arr[$v]', '$item_weight_arr[$v]', '$item_op_arr[$v]', 'A', '$item_unit_price_arr[$v]', '$item_qty_arr[$v]', '$item_price_bp_arr[$v]', "; - $db_query .= "'$item_price_ct_arr[$v]', '0', '0', '0', '$note')"; - $result = mysqli_query($link, $db_query); - $nextno++; - } - } - - // 價格審查單-明細項目 pricereview_item:Option加價 - $op_id_arr = explode(",", $op_id_all); - $op_item_arr = explode(",", $op_item_all); // 留下的OPTION ID - $op_act_arr = explode(",", $op_act_all); // U:update I:insert - $op_del_arr = explode(",", $op_del); // 刪除的OPTION ID - $option_seat_all = str_replace("點選", "", $option_seat_all); - $option_seat_arr = explode(",", str_replace("@@", "", $option_seat_all)); - $option_unit_price_arr = explode(",", $option_unit_price_all); - $option_qty_arr = explode(",", $option_qty_all); - $option_price_bp_arr = explode(",", $option_price_bp_all); - $option_memo_arr = explode("@@,", rtrim($option_memo_all, "@@")); - $option_relate_facil_arr = explode(",", htmlspecialchars_decode($option_relate_facil_all)); - $to_ins_arr = []; // 準備要新增的項目 - if (count($op_item_arr) > 0) { - foreach ($op_item_arr as $k => $iid) { - if (empty($iid) && $op_act_arr[$k] == "I") { - $to_ins_arr[] = $k; - } else { - $option_relate_facil_tmp_arr = explode("您有待簽核案件,請至客戶管理 > 價格審查_新梯,點擊「待簽核」進行作業,謝謝!
"; - $sendmail->sendx($title, $content, $mail_list); - } - } - } - } - - mysqli_close($link); - if ($affected > 0) { - echo ""; - } else { - echo ""; - } -} -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview-uploads/D23080055-appendix-2023-08-25.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080055-appendix-2023-08-25.xlsx deleted file mode 100644 index e7d0831b..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080055-appendix-2023-08-25.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080057-appendix-2023-09-08.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080057-appendix-2023-09-08.xlsx deleted file mode 100644 index 4eb5989d..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080057-appendix-2023-09-08.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080088-appendix-2023-09-11.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080088-appendix-2023-09-11.xlsx deleted file mode 100644 index f16b66d0..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080088-appendix-2023-09-11.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080093-price-2023-08-25.pdf b/wms/mkt/mkt/pricereview-uploads/D23080093-price-2023-08-25.pdf deleted file mode 100644 index 1c48abaf..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080093-price-2023-08-25.pdf and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080094-appendix-2023-08-29.pdf b/wms/mkt/mkt/pricereview-uploads/D23080094-appendix-2023-08-29.pdf deleted file mode 100644 index 44b95672..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080094-appendix-2023-08-29.pdf and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080094-price-2023-08-29.pdf b/wms/mkt/mkt/pricereview-uploads/D23080094-price-2023-08-29.pdf deleted file mode 100644 index 4b51d720..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080094-price-2023-08-29.pdf and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080121-appendix-2023-08-25.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080121-appendix-2023-08-25.xlsx deleted file mode 100644 index 865d2b61..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080121-appendix-2023-08-25.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080159-price-2023-08-29.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080159-price-2023-08-29.xlsx deleted file mode 100644 index 281a31e2..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080159-price-2023-08-29.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080167-appendix-2023-08-30.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080167-appendix-2023-08-30.xlsx deleted file mode 100644 index 87b05b41..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080167-appendix-2023-08-30.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080167-price-2023-08-30.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080167-price-2023-08-30.xlsx deleted file mode 100644 index 87b05b41..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080167-price-2023-08-30.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080168-appendix-2023-08-30.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080168-appendix-2023-08-30.xlsx deleted file mode 100644 index 274cb137..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080168-appendix-2023-08-30.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080168-price-2023-08-30.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080168-price-2023-08-30.xlsx deleted file mode 100644 index 274cb137..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080168-price-2023-08-30.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23080175-appendix-2023-09-07.xlsx b/wms/mkt/mkt/pricereview-uploads/D23080175-appendix-2023-09-07.xlsx deleted file mode 100644 index 388f469e..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23080175-appendix-2023-09-07.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23090027-appendix-2023-09-08.xlsx b/wms/mkt/mkt/pricereview-uploads/D23090027-appendix-2023-09-08.xlsx deleted file mode 100644 index 3f9514ad..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23090027-appendix-2023-09-08.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/D23090038-appendix-2023-09-08.xlsx b/wms/mkt/mkt/pricereview-uploads/D23090038-appendix-2023-09-08.xlsx deleted file mode 100644 index ad601bb7..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/D23090038-appendix-2023-09-08.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M220307-appendix-2023-09-07.xlsx b/wms/mkt/mkt/pricereview-uploads/M220307-appendix-2023-09-07.xlsx deleted file mode 100644 index 314ce6a2..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M220307-appendix-2023-09-07.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M230305-appendix-2023-09-07.xlsx b/wms/mkt/mkt/pricereview-uploads/M230305-appendix-2023-09-07.xlsx deleted file mode 100644 index 23c214a8..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M230305-appendix-2023-09-07.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M230562-appendix-2023-09-26.xlsx b/wms/mkt/mkt/pricereview-uploads/M230562-appendix-2023-09-26.xlsx deleted file mode 100644 index 5ee103d9..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M230562-appendix-2023-09-26.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090002-appendix-2023-09-20.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090002-appendix-2023-09-20.xlsx deleted file mode 100644 index b30da989..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090002-appendix-2023-09-20.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090065-appendix-2023-09-20.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090065-appendix-2023-09-20.xlsx deleted file mode 100644 index 8eaf2763..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090065-appendix-2023-09-20.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090066-appendix-2023-10-02.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090066-appendix-2023-10-02.xlsx deleted file mode 100644 index 334df12c..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090066-appendix-2023-10-02.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090074-appendix-2023-09-14.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090074-appendix-2023-09-14.xlsx deleted file mode 100644 index ef16e1a2..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090074-appendix-2023-09-14.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090111-appendix-2023-09-21.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090111-appendix-2023-09-21.xlsx deleted file mode 100644 index ffc7647e..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090111-appendix-2023-09-21.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090111-price-2023-09-21.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090111-price-2023-09-21.xlsx deleted file mode 100644 index ffc7647e..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090111-price-2023-09-21.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090130-appendix-2023-09-27.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090130-appendix-2023-09-27.xlsx deleted file mode 100644 index db542128..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090130-appendix-2023-09-27.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090142-appendix-2023-09-26.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090142-appendix-2023-09-26.xlsx deleted file mode 100644 index 0457ef52..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090142-appendix-2023-09-26.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090148-appendix-2023-10-02.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090148-appendix-2023-10-02.xlsx deleted file mode 100644 index cc091a45..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090148-appendix-2023-10-02.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/M23090149-appendix-2023-10-02.xlsx b/wms/mkt/mkt/pricereview-uploads/M23090149-appendix-2023-10-02.xlsx deleted file mode 100644 index cee679e2..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/M23090149-appendix-2023-10-02.xlsx and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/T23090080-appendix-2023-10-02.pdf b/wms/mkt/mkt/pricereview-uploads/T23090080-appendix-2023-10-02.pdf deleted file mode 100644 index c4610761..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/T23090080-appendix-2023-10-02.pdf and /dev/null differ diff --git a/wms/mkt/mkt/pricereview-uploads/T23090080-price-2023-10-02.pdf b/wms/mkt/mkt/pricereview-uploads/T23090080-price-2023-10-02.pdf deleted file mode 100644 index 2fa4dfb1..00000000 Binary files a/wms/mkt/mkt/pricereview-uploads/T23090080-price-2023-10-02.pdf and /dev/null differ diff --git a/wms/mkt/mkt/pricereview_demolition-api.php b/wms/mkt/mkt/pricereview_demolition-api.php deleted file mode 100644 index 3e09f1ea..00000000 --- a/wms/mkt/mkt/pricereview_demolition-api.php +++ /dev/null @@ -1,48 +0,0 @@ - 'ok', 'err' => ''); - -try { - if (empty($_POST) || empty($_POST["fval"])) throw new \Exception("parameter empty"); - - foreach ($_POST as $k => $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - list($floor, $seat) = explode(",", $fval); - if (!$floor || !$seat) throw new \Exception("parameter empty[2]"); - - $db_query = "select id, price from demolition_price where release_date = '2021-11-10' and seat = '$seat' and floor = '$floor' and status = 'Y'"; - $res = mysqli_query($link, $db_query); - if ($row = mysqli_fetch_row($res)) { - $rarr["id"] = $row[0]; - $rarr["amt"] = $row[1]; - } - mysqli_free_result($res); -}catch(\Exception $e) { - $rarr['st'] = 'err'; - $rarr['err'] = $e->getMessage(); -} - -echo json_encode($rarr, JSON_UNESCAPED_UNICODE); -exit; -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview_facility-api.php b/wms/mkt/mkt/pricereview_facility-api.php deleted file mode 100644 index 3bd376df..00000000 --- a/wms/mkt/mkt/pricereview_facility-api.php +++ /dev/null @@ -1,84 +0,0 @@ - 'ok', 'err' => ''); - -try { - if (empty($_POST) || empty($_POST["fval"])) throw new \Exception("parameter empty"); - - foreach ($_POST as $k => $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - list($source, $kind, $seat, $numberofstop, $speed, $op) = explode(",", $fval); - if (!$source || !$kind || !$seat) throw new \Exception("parameter empty[2]"); - - if ($source == "F") { - $db_query = "select id, price, price_mi, model from facility_price where kind = '$kind' and seat = '$seat' and numberofstop = '$numberofstop' "; - $db_query .= "and speed = '$speed' and status = 'Y'"; - $res = mysqli_query($link, $db_query); - if ($row = mysqli_fetch_row($res)) { - $id = $row[0]; - $price = $row[1]; - $price_mi = $row[2]; - $a=[$kind, $seat, $numberofstop, $op, $speed]; - $ret = facility_spec([$kind, $seat, $numberofstop, $op, $speed]); - list($model, $weight) = explode(",", $ret); - } - mysqli_free_result($res); - if (!empty($id)) { - $rarr["id"] = $id; - $rarr["amt"] = $price; - $rarr["iamt"] = "1".$price_mi; - $rarr["model"] = $model; - $rarr["group"] = "A"; - $rarr["weight"] = $weight; - } else { - $rarr['st'] = 'err'; - $rarr['err'] = "無價格,請連絡資訊人員!"; - } - } else if ($source == "M") { - $db_query = "select id, price_a_1 from facility_maintenance_price where kind = '$kind' and seat = '$seat' and numberofstop = '$numberofstop' "; - $db_query .= "and speed = '$speed' and status = 'Y'"; - //echo $db_query;exit; - $res = mysqli_query($link, $db_query); - if ($row = mysqli_fetch_row($res)) { - $id = $row[0]; - $price = $row[1]; - } - mysqli_free_result($res); - - if (!empty($id)) { - $rarr["id"] = $id; - $rarr["amt"] = $price; - } else { - $rarr['st'] = 'err'; - $rarr['err'] = "無價格,請連絡資訊人員!"; - } - } -}catch(\Exception $e) { - $rarr['st'] = 'err'; - $rarr['err'] = $e->getMessage(); -} -//print_r($rarr);exit; -echo json_encode($rarr, JSON_UNESCAPED_UNICODE); -exit; -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview_mi-api.php b/wms/mkt/mkt/pricereview_mi-api.php deleted file mode 100644 index f2e6480d..00000000 --- a/wms/mkt/mkt/pricereview_mi-api.php +++ /dev/null @@ -1,191 +0,0 @@ - 'ok', 'err' => ''); - -try { - if (empty($_POST) || empty($_POST["pa"])) throw new \Exception("parameter empty"); - - foreach ($_POST as $k => $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - if (empty($pa)) throw new \Exception("parameter empty[2]"); - $opt = ""; - if (strpos($pa, ",")) list($id, $opt) = explode(",", $pa); - else $id = $pa; - - $person2weight_arr = [ "6" => "450", - "8" => "550", - "9" => "600", - "10" => "700", - "11" => "750", - "12" => "800", - "13" => "900", - "15" => "1000", - "17" => "1150", - "20" => "1350", - "24" => "1600"]; - - $mi_arr = []; - $i = $weight = 0; - $sql = "select note, item_qty, item_weight, item_op, item_spec from pricereview_item where mid = '$id' and item_group = 'A' order by item_no"; - $res = mysqli_query($link, $sql); - while ($row = mysqli_fetch_row($res)) { - list($etype, $persons, $floors, $speed) = explode(",", $row[0]); - $item_qty = $row[1]; // 數量 - $item_weight = $row[2]; // 載重 - $item_op = $row[3]; // 開門方式 - $item_spec = $row[4]; // 電梯規格 - $sql2 = "select o.*, r.* from elevator_mi_option o, elevator_quotation_rule r "; - $sql2 .= "where o.quotation_no = r.quotation_no and o.elevator_type = '$etype' "; - $sql2 .= "and ($item_weight between o.min_weight and o.max_weight) "; - $sql2 .= "and ($floors between o.min_floors and o.max_floors) "; - $sql2 .= "and ($speed between o.min_speed and o.max_speed) "; - if ($etype == "MAQ100" || $etype == "MAP100") { - $sql2 .= "and (o.model_no = '$persons') "; - } - $res_e = mysqli_query($link, $sql2); - if ($row_e = mysqli_fetch_assoc($res_e)) { - // 基准采购成本+±1停材料费+设计费+出口费用 - $part1 = $row_e["purchase_cost"]+($floors-$row_e["base_floor"])*$row_e["material_plus"]+$row_e["design"]*$row_e["design_hour"]+$row_e["export_fee"]; - // 利潤 - $profit = round($part1*$row_e["profit"]+$row_e["equip_profit"], 0); - // 設備 - $equipment_ntd = round(($part1+$profit)*$row_e["equipment"], 0); - // 報關+運輸 - $customs = round($equipment_ntd*$row_e["shipping"], 0)+$row_e["customs_shipping"]; - // 安裝基價 - $install_base = $row_e["install_price"]+$row_e["trial_price"]+$row_e["install_coef"]*$row_e["install_plus"]+$row_e["trial_coef"]*$row_e["trial_plus"]; - // 安裝成本 - $install_price = round($install_base+($row_e["install_plus"]+$row_e["trial_plus"])*($floors-$row_e["base_floor"]), 0); - // 起吊+木箱+耗材 - $woods = $row_e["crane"]+$row_e["wooden_box"]+$row_e["consume"]+$row_e["consumables"]; - // MI - $mi = $equipment_ntd+$customs+$row_e["unloading"]+$row_e["transport_site"]+$install_price+$row_e["free1y"]+$woods+$row_e["option_price"]; - - /* - $install_price = $row_e["install_price"] + $row_e["install_plus"]*($floors - $row_e["min_floors"]); // 安裝 - $trial_price = $row_e["trial_price"] + $row_e["trial_plus"]*($floors - $row_e["min_floors"]); // 試車 - $extra_fee = round($row_e["install_price"]*$row_e["extra_rate"], 0); // 預抓配合工程 - // 安裝成本 - $install_cost_total = $install_price + $trial_price + $extra_fee + $row_e["crane"] + $row_e["wooden_box"] + $row_e["consume"] + $row_e["consumables"]; - // 設計費 - $design_fee = $row_e["design"]*$row_e["design_hour"]; - // 利潤 - if (strpos($row_e["profit"], ".") !== false) { - $profit_amt = round(($row_e["purchase_cost"] + ($floors - $row_e["base_floor"])*$row_e["material_plus"] + $design_fee + $row_e["export_fee"])*$row_e["profit"], 0); - } else $profit_amt = $row_e["profit"]; - // 報價 - $quotation = $row_e["purchase_cost"] + ($floors - $row_e["base_floor"])*$row_e["material_plus"] + $design_fee + $row_e["export_fee"] + $profit_amt; - // 設備折合台幣 - $equipment_ntd = round($quotation*$row_e["equipment"], 0); - // 報關+運輸費 - if (strpos($row_e["shipping"], ".") !== false) { - $shipping_fee = round($equipment_ntd*$row_e["shipping"], 0); - } else $shipping_fee = $row_e["shipping"]; - // MI - $mi = $equipment_ntd + $shipping_fee + $row_e["unloading"] + $row_e["transport_site"] + $install_cost_total + $row_e["free1y"] + $row_e["option_price"] + $row_e["weight_price"]; - */ - // 拆梯價格 - $dismantle_fee = $polishing_fee = 0; - if ($opt == "R") { - $sql3 = "select item_spec, item_qty, note from pricereview_item where mid = '$id' and item_group = 'C'"; - $res_i = mysqli_query($link, $sql3); - while ($row_i = mysqli_fetch_assoc($res_i)) { - $sql4 = "select min_floors, price, price_plus from dismantle_mi_option where spec = '".$row_i["item_spec"]."' "; - $sql4 .= "and ($floors between min_floors and max_floors) "; - $sql4 .= "and version_date = '2023-09-04'"; - $res_d = mysqli_query($link, $sql4); - if ($row_d = mysqli_fetch_assoc($res_d)) { - $dismantle_fee += ($row_d["price"] + $row_d["price_plus"]*($floors - $row_d["min_floors"]))*$row_i["item_qty"]; - $polishing_fee += 3000*$row_i["note"]; - } - mysqli_free_result($res_d); - } - mysqli_free_result($res_i); - } - - // Option價格 - $oparr = []; - $option_fee = $j = 0; - $sql3 = "select id, price_id, item_spec, item_qty from pricereview_item "; - $sql3 .= "where mid = '$id' and item_group = 'B' and option_relate_spec like '%".$item_spec."%' order by item_no"; - $res_b = mysqli_query($link, $sql3); - while ($row_b = mysqli_fetch_assoc($res_b)) { - $sql4 = "select o.base_floor, o.base_floor_plus, o.price, r.equipment from option_mi o, elevator_quotation_rule r "; - $sql4 .= "where o.quotation_no = r.quotation_no and o.option_price_id = ".$row_b["price_id"]." "; - $sql4 .= "and ($item_weight between o.min_weight and o.max_weight) and o.open_kind = '$item_op'"; - $res_om = mysqli_query($link, $sql4); - $row_om = mysqli_fetch_assoc($res_om); - $plus = ($floors > $row_om["base_floor"]) ? ($floors - $row_om["base_floor"])*$row_om["base_floor_plus"] : 0; - - // 特例 - if ($row_b["price_id"] == "256" && ($floors < $row_om["base_floor"])) $row_om["price"] = 9815; - if ($row_b["price_id"] == "266" && $floors >= 20) $plus += 44.8; // 15层,14.6元/层(19层内,跳20层再追加44.8元) - - $option_amt = round(0+($row_om["price"]+$plus)*$row_b["item_qty"]*$row_om["equipment"], 0); - $option_fee += $option_amt; // option總金額 - $oparr[$j][0] = $row_b["item_spec"]; - $oparr[$j][1] = $option_amt; - $j++; - mysqli_free_result($res_om); - } - mysqli_free_result($res_b); - - $mi_arr[$i][0] = $mi*$item_qty + $dismantle_fee + $polishing_fee + $option_fee; - /* - $mi_arr[$i][1] = $row_e["purchase_cost"]; - $mi_arr[$i][2] = $row_e["material_plus"]; - $mi_arr[$i][3] = $design_fee; - $mi_arr[$i][4] = $row_e["export_fee"]; - $mi_arr[$i][5] = $profit_amt; - $mi_arr[$i][6] = $quotation; - */ - $mi_arr[$i][1] = 0+$equipment_ntd; - $mi_arr[$i][2] = 0+$customs; - $mi_arr[$i][3] = 0+$row_e["unloading"]; - $mi_arr[$i][4] = 0+$row_e["transport_site"]; - $mi_arr[$i][5] = 0+$install_price; - $mi_arr[$i][6] = 0+$row_e["free1y"]; - $mi_arr[$i][7] = 0+$woods; - $mi_arr[$i][8] = $row_e["equipment"]; - $mi_arr[$i][9] = 0+$row_e["option_price"]; - $mi_arr[$i][10] = 0+$dismantle_fee; - $mi_arr[$i][11] = 0+$polishing_fee; - $mi_arr[$i][12] = $mi_arr[$i][1]+$mi_arr[$i][2]+$mi_arr[$i][3]+$mi_arr[$i][4]+$mi_arr[$i][5]+$mi_arr[$i][6]+$mi_arr[$i][7]+$mi_arr[$i][9]+$mi_arr[$i][10]+$mi_arr[$i][11]; - $mi_arr[$i][13] = $option_fee; - $mi_arr[$i][14] = $oparr; - $i++; - } - mysqli_free_result($res_e); - } - mysqli_free_result($res); - - $rarr["content"] = $mi_arr; -}catch(\Exception $e) { - $rarr['st'] = 'err'; - $rarr['err'] = $e->getMessage(); -} - -echo json_encode($rarr, JSON_UNESCAPED_UNICODE); -exit; -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview_renovate-check.php b/wms/mkt/mkt/pricereview_renovate-check.php deleted file mode 100644 index 616a55a9..00000000 --- a/wms/mkt/mkt/pricereview_renovate-check.php +++ /dev/null @@ -1,1026 +0,0 @@ -"; - echo "alert('資料錯誤!!');"; - echo "window.history.go(-1);"; - echo ""; - exit; - } -} - -// 員工編號對應姓名表 -$accountname_arr = accountid2name(); - -// 審核按鈕開關 -$sign_on = 0; - -$data = $item_arr = $option_arr = $mn_arr = $ex_arr = $demolition_arr = $pay_arr = array(); -$checker_1_result = $checker_2_result = $checker_3_result = $checker_4_result = ""; -$db_query = "select * from pricereview_main where id = '$id'"; -/* -if ($res = mysqli_query($link, $db_query)) { - while ($row = mysqli_fetch_row($res)) { - list($id, $version, $company) - } -} -*/ -$res = mysqli_query($link, $db_query); -foreach ($res as $data) { - // 上層主管 - $sql = "select manager from account where accountid = '".$data["person"]."'"; - $res_a = mysqli_query($link, $sql); - $row_a = mysqli_fetch_row($res_a); - $manager = $row_a[0]; - mysqli_free_result($res_a); - // 瀏覽MI權限 - $depart_id = accountidToDepartId($user_id); - if ($depart_id == "320" || $depart_id == "321" || $depart_id == "20" || $user_id == "M0008") $viewmi = 1; - else $viewmi = 0; - - $sql = "select * from pricereview_sign where mid = '$id'"; - $res_s = mysqli_query($link, $sql); - $row_s = mysqli_fetch_assoc($res_s); - mysqli_free_result($res_s); - if (!empty($row_s["sign1"])) list($person1, $status1, $dtte1) = explode(",", $row_s["sign1"]); - else $person1 = $status1 = $dtte1 = ""; - if (!empty($row_s["sign2"])) list($person2, $status2, $dtte2) = explode(",", $row_s["sign2"]); - else $person2 = $status2 = $dtte2 = ""; - if (!empty($row_s["sign3"])) list($person3, $status3, $dtte3) = explode(",", $row_s["sign3"]); - else $person3 = $status3 = $dtte3 = ""; - if (!empty($row_s["sign4"])) list($person4, $status4, $dtte4) = explode(",", $row_s["sign4"]); - else $person4 = $status4 = $dtte4 = ""; - $sign1_note = (empty($row_s["sign1_note"])) ? "" : $row_s["sign1_note"]; - $sign2_note = (empty($row_s["sign2_note"])) ? "" : $row_s["sign2_note"]; - $sign3_note = (empty($row_s["sign3_note"])) ? "" : $row_s["sign3_note"]; - $sign4_note = (empty($row_s["sign4_note"])) ? "" : $row_s["sign4_note"]; - if ($status1 == "Y") { - $checker_1_result = "同意"; - } elseif ($status1 == "N") { - $checker_1_result = "不同意"; - } - if ($status2 == "Y") { - $checker_2_result = "同意"; - } elseif ($status2 == "N") { - $checker_2_result = "不同意"; - } - if ($status3 == "Y") { - $checker_3_result = "同意"; - } elseif ($status3 == "N") { - $checker_3_result = "不同意"; - } - if ($status4 == "Y") { - $checker_4_result = "同意"; - } elseif ($status4 == "N") { - $checker_4_result = "不同意"; - } - if ($st == 1 && ($person1 == $user_id) && ($status1 == "")) { - $sign_on = 1; - } - if ($st == 2 && ($person2 == $user_id) && ($status2 == "")) { - $sign_on = 1; - } - if ($st == 3 && ($person3 == $user_id) && ($status3 == "")) { - $sign_on = 1; - } - if ($st == 4 && ($person4 == $user_id) && ($status4 == "")) { - $sign_on = 1; - } - // $sign_total=關卡數 - if ($person4 == "") { - if ($person3 == "") { - $sign_total = 1; - } else { - $sign_total = 2; - } - } else { - $sign_total = 3; - } - /* - if (!$data["checker_1"] && !$data["checker_2"] && !$data["checker_3"]) $allow_st = 1; - else if (!$data["checker_2"] && !$data["checker_3"]) $allow_st = 2; - else if (!$data["checker_3"]) $allow_st = 3; - if ($data["checker_1_result"]) { - if ($data["checker_1_result"] == "Y") $checker_1_result = "通過"; - else if ($data["checker_1_result"] == "N") { - $stopchk = 1; - $checker_1_result = "拒絕"; - } - } - if ($data["checker_2_result"]) { - if ($data["checker_2_result"] == "Y") $checker_2_result = "通過"; - else if ($data["checker_2_result"] == "N") { - $stopchk = 1; - $checker_2_result = "拒絕"; - } - } - if ($data["checker_3_result"]) { - if ($data["checker_3_result"] == "Y") $checker_3_result = "通過"; - else if ($data["checker_3_result"] == "N") { - $stopchk = 1; - $checker_3_result = "拒絕"; - } - } - */ - - /* - if ($st != $allow_st) { - mysqli_free_result($res); - mysqli_close($link); - echo ""; - } - */ - $mid = $data["id"]; - $data["qty_total"] = 0; - $db_query = "select * from pricereview_item where mid = '$mid' order by item_group, item_no"; - $res_i = mysqli_query($link, $db_query); - while ($row = mysqli_fetch_assoc($res_i)) { - if ($row['item_group'] == "A") { - $item_arr[$row['item_no']]['item_spec'] = $row['item_spec']; - $item_arr[$row['item_no']]['item_unit_price'] = $row['item_unit_price']; - $item_arr[$row['item_no']]['item_qty'] = $row['item_qty']; - $item_arr[$row['item_no']]['item_price_bp'] = $row['item_price_bp']; - $item_arr[$row['item_no']]['item_price_ct'] = $row['item_price_ct']; - $item_arr[$row['item_no']]['item_price'] = $row['item_price']; - $item_arr[$row['item_no']]['pv_rate'] = $row['pv_rate']; - $item_arr[$row['item_no']]['allocate'] = $row['allocate']; - $item_arr[$row['item_no']]['gross_profit'] = $row['gross_profit']; - $item_arr[$row['item_no']]['gross_profit_rate'] = $row['gross_profit_rate']; - $item_arr[$row['item_no']]['note'] = $row['note']; - $item_arr[$row['item_no']]['mi_fix'] = $row['mi_fix']; - $data["qty_total"] += $row["item_qty"]; - } elseif ($row['item_group'] == "B") { - $option_arr[$row['item_no']]['item_spec'] = $row['item_spec']; - $option_arr[$row['item_no']]['item_unit_price'] = $row['item_unit_price']; - $option_arr[$row['item_no']]['item_qty'] = $row['item_qty']; - $option_arr[$row['item_no']]['item_price_bp'] = $row['item_price_bp']; - $option_arr[$row['item_no']]['memo'] = $row['memo']; - $option_arr[$row['item_no']]['option_relate_spec'] = $row['option_relate_spec']; - } elseif ($row['item_group'] == "D") { - $mn_arr[$row['item_no']]['item_spec'] = $row['item_spec']; - $mn_arr[$row['item_no']]['item_unit_price'] = $row['item_unit_price']; - $mn_arr[$row['item_no']]['item_qty'] = $row['item_qty']; - $mn_arr[$row['item_no']]['item_price_bp'] = $row['item_price_bp']; - $mn_arr[$row['item_no']]['note'] = $row['note']; - $mn_arr[$row['item_no']]['memo'] = $row['memo']; - } elseif ($row['item_group'] == "E") { - $ex_arr[$row['item_no']]['item_spec'] = $row['item_spec']; - $ex_arr[$row['item_no']]['item_unit_price'] = $row['item_unit_price']; - $ex_arr[$row['item_no']]['item_qty'] = $row['item_qty']; - $ex_arr[$row['item_no']]['item_price_bp'] = $row['item_price_bp']; - $ex_arr[$row['item_no']]['note'] = $row['note']; - } elseif ($row['item_group'] == "C") { - $demolition_arr[$row['item_no']]['item_spec'] = $row['item_spec']; - $demolition_arr[$row['item_no']]['item_unit_price'] = $row['item_unit_price']; - $demolition_arr[$row['item_no']]['item_qty'] = $row['item_qty']; - $demolition_arr[$row['item_no']]['item_price_bp'] = $row['item_price_bp']; - $demolition_arr[$row['item_no']]['note'] = $row['note']; - } - } - mysqli_free_result($res_i); - $data["price_total_broken"] = $data["price_total"] - $data["price_lowest"]; - $data["price_broken"] = ($data["qty_total"]) ? round($data["price_total_broken"]/$data["qty_total"], 1) : 0; - - // 付款辦法 - $pay_all_scale = $pay_all_amount = 0; - $sql = "select * from pricereview_pay where mid = '$mid' order by pay_kind"; - $res_p = mysqli_query($link, $sql); - while ($row_p = mysqli_fetch_assoc($res_p)) { - $pay_arr[$row_p["pay_kind"]]["pay_scale"] = $row_p["pay_scale"]; - $pay_arr[$row_p["pay_kind"]]["pay_amount"] = $row_p["pay_amount"]; - $pay_arr[$row_p["pay_kind"]]["pay_period"] = $row_p["pay_period"]; - $pay_arr[$row_p["pay_kind"]]["pay_note"] = $row_p["pay_note"]; - $pay_all_scale += $row_p["pay_scale"]; - $pay_all_amount += $row_p["pay_amount"]; - } - mysqli_free_result($res_p); - ?> - - - - - - -名稱 | -規格 | -備註 | -配置 | -單位 | -定價 | -
---|---|---|---|---|---|
'.$opt_kind_arr[$k].' | |||||
".$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.' | '; - } else { - $option_str .= ' '; - } - $option_str .= "".$v3["spec"]." | "; - $option_str .= "".$v3["memo"]." | "; - $option_str .= "".$optional." | "; - $option_str .= "".$v3["unit"]." | "; - $option_str .= "".number_format($v3["price"])." | "; - $option_str .= "
Record has added successfully
"; - } -} -*/ -?> - -名稱 | -規格 | -備註 | -配置 | -單位 | -定價 | -
---|---|---|---|---|---|
'.$opt_kind_arr[$k].' | |||||
".$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.' | '; - } else { - $option_str .= ' '; - } - $option_str .= "".$v3["spec"]." | "; - $option_str .= "".$v3["memo"]." | "; - $option_str .= "".$optional." | "; - $option_str .= "".$v3["unit"]." | "; - $option_str .= "".number_format($v3["price"])." | "; - $option_str .= "
項次 | -卷號 | -營業員 | -客戶名稱 | -案件名稱 | -牌價總額 | -售價總額 | -價率 | -預定成交日 | -預定交期 | -建檔人 | -建檔時間 | -功能 | -區經理 | -工務副總 | -總經理 | -狀態 | -合約書下載 | - -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | % | -- | - | - | - | - - 修改 - 刪除 - - 填規調 - - " class="btn btn-warning btn-sm">檢視 - | -
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if ($sign_st==1 && $sign_nt==$user_id && $data["status"]=="YS") { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - /* - if ($sign_st==1 && $sign_nt==$user_id) { - $str = ""; - $str = "".$str.""; - } else if ($sign_st > 1 || $data['last_check_result']) { // 過了這關或已完成流程 - list($uperson, $ustatus, $udtte) = explode(",", $sign1); - if ($ustatus == "Y") $str = ""; - else $str = ""; - $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else $str = "--"; - */ - - /* - if ($data["checker_1_result"] == "Y") { - $str = ""; - } elseif ($data["checker_1_result"] == "N") { - $str = ""; - } else { - $str = ""; - } - if (!$oneself) { - $str = "".$str.""; - $str .= " ".$data["checker_1"]." ".$data["checker_1_dt"]; - } else { - if ($data["checker_1_result"]) { - $str = "".$str.""; - $str .= " ".$data["checker_1"]." ".$data["checker_1_dt"]; - } - else $str = "--"; - }*/ - //echo $str; - ?> - |
-
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if (($data["status"] == "YS") && ($sign_st == 3) && ($sign_nt == $user_id)) { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - /* - $str = ""; - if ($sign_st==3 && $sign_nt==$user_id) { - $str = ""; - $str = "".$str.""; - } else $str = "--"; - */ - - /* - if ($data["checker_3_result"] == "Y") { - $str = ""; - } elseif ($data["checker_3_result"] == "N") { - $str = ""; - } else { - $str = ""; - } - if (!$oneself) { - $str = "".$str.""; - $str .= " ".$data["checker_3"]." ".$data["checker_3_dt"]; - } else { - if ($data["checker_3_result"]) { - $str = "".$str.""; - $str .= " ".$data["checker_3"]." ".$data["checker_3_dt"]; - } - else $str = "--"; - } - */ - //echo $str; - ?> - |
-
- ";
- elseif ($ustatus == "N") $str = "";
- $str .= " ".$accountname_arr[$uperson]." ".$udtte; - } else { - if (($data["status"] == "YS") && ($sign_st == 4) && ($sign_nt == $user_id)) { - $str = ""; - $str = "待簽核"; - $str = "".$str.""; - } else $str = "--"; - } - echo $str; - ?> - |
- - - | - - 合約書申請 - - | -
您有待簽核案件,請至客戶管理 > 價格審查_汰改,點擊「待簽核」進行作業,謝謝!
"; - $sendmail->sendx($title, $content, $mail_list); - } - } - if ($end_flow) { - end_flow("prm", "prm02", $id, $contractno_h); - } - } - mysqli_close($link); - echo ""; -} -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview_renovate-record-submit.php b/wms/mkt/mkt/pricereview_renovate-record-submit.php deleted file mode 100644 index 4ea7ea35..00000000 --- a/wms/mkt/mkt/pricereview_renovate-record-submit.php +++ /dev/null @@ -1,340 +0,0 @@ -全汰改 - */ -if ($_SERVER["REQUEST_METHOD"] == "POST") { - //print_r($_REQUEST);exit; - foreach ($_POST as $k => $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - // 同客戶同電梯不能重覆價審 - /* - $warr = []; - $fp_id_str = ""; - $fp_id_arr = explode(",", $fp_id_all); - foreach ($fp_id_arr as $val) { - if ($val && $val>0) $fp_id_str .= $val.","; - } - $fp_id_str = rtrim($fp_id_str, ","); - $db_query = "select i.item_spec from pricereview_main m, pricereview_item i "; - $db_query .= "where m.id = i.mid and contractno = '$contractno' and fp_id in ($fp_id_str) and last_check_result <> 'N'"; - $res = mysqli_query($link, $db_query); - while ($row = mysqli_fetch_row($res)) { - $warr[] = $row[0]; - } - $warning = implode("、", $warr); - if ($warning) { - echo ""; - } - */ - - $price_total = str_replace(",", "", $price_total); - $price_lowest = str_replace(",", "", $price_lowest); - $pay_amount = str_replace(",", "", $pay_amount); - $pay_all_amount = str_replace(",", "", $pay_all_amount); - $special_fee = str_replace(",", "", $special_fee); - if (empty($deposit_rate)) $deposit_rate = 0; - if (empty($keep_rate)) $keep_rate = 0; - if (empty($warranty_rate)) $warranty_rate = 0; - if (empty($special_fee)) $special_fee = 0; - $status = ($pmstatus == "tosign") ? "YS" : "Y1"; // YS:提交 Y1:保存 - $st_str = ($status == "YS") ? "提交" : "保存"; - $create_at = date("Y-m-d H:i:s"); - $tds = date("Y-m-d"); - - // 客戶資料 - $sql = "select vol_no, salesman, customer, address from hope_elevator_customer where vol_no = '$vol_no'"; - $res = mysqli_query($link, $sql); - $row = mysqli_fetch_row($res); - list($contractno, $person, $company, $address) = $row; - mysqli_free_result($res); - - // 同一卷號只限一筆價審 - $sql = "select count(*) from pricereview_main where contractno = '$contractno' and status in ('Y1', 'YS', 'YY')"; - $res = mysqli_query($link, $sql); - $row = mysqli_fetch_row($res); - if ($row[0] > 0) { - echo ""; - exit; - } - - // 上傳報價單 - $target_dir = "pricereview-uploads/"; - if ($_FILES["attatch1"]["error"] == 0) { - $file_name = $_FILES["attatch1"]["name"]; - $temp_file_name = $_FILES["attatch1"]["tmp_name"]; - $file_size = $_FILES["attatch1"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file1 = $target_dir.$vol_no."-price-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$vol_no."-price-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_1 = move_uploaded_file($temp_file_name, $target_file1); - } else $target_file1 = ""; - - // 上傳附表一 - if ($_FILES["attatch2"]["error"] == 0) { - $file_name = $_FILES["attatch2"]["name"]; - $temp_file_name = $_FILES["attatch2"]["tmp_name"]; - $file_size = $_FILES["attatch2"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file2 = $target_dir.$vol_no."-appendix-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$vol_no."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_2 = move_uploaded_file($temp_file_name, $target_file2); - } else $target_file2 = ""; - - if (($target_file1 && !$upload_res_1) || ($target_file2 && !$upload_res_2)) { - echo ""; - exit; - } - - // 價格審查單-主文 pricereview_main - $db_query = "insert into pricereview_main(contractno, ekind, person, company, case_name, address, price_lowest, "; - $db_query .= "price_total, price_rate, special_fee, predeal_date, facilitok_date, penalty, deposit_rate, keep_rate, "; - $db_query .= "warranty_rate, memo, status, attatch1, attatch2, creater, create_at) values ("; - $db_query .= "'$contractno', '汰改', '$person', '$company', '$case_name', '$address', '$price_lowest', "; - $db_query .= "'$price_total', '$price_rate', '$special_fee', '$predeal_date', '$facilitok_date', '$penalty', '$deposit_rate', '$keep_rate', "; - $db_query .= "'$warranty_rate', '$memo', '$status', '$target_file1', '$target_file2', '$user_id', '$create_at')"; - $result = mysqli_query($link, $db_query); - $affected = mysqli_affected_rows($link); - if ($mid = mysqli_insert_id($link)) { - // 價格審查單-明細項目 pricereview_item:電梯 - $fp_id_arr = explode(",", $fp_id_all); - $fp_kind_arr = explode(",", $fp_kind_all); - $fp_seat_arr = explode(",", $fp_seat_all); - $fp_numberofstop_arr = explode(",", $fp_numberofstop_all); - $fp_speed_arr = explode(",", $fp_speed_all); - $item_weight_arr = explode(",", $item_weight_all); - $item_op_arr = explode(",", $item_op_all); - $item_spec_arr = explode(",", $item_spec_all); - $item_group_arr = explode(",", $item_group_all); - $item_unit_price_arr = explode(",", $item_unit_price_all); - $item_qty_arr = explode(",", $item_qty_all); - $item_qty_ori_arr = explode(",", $item_qty_ori_all); - $item_price_bp_arr = explode(",", $item_price_bp_all); - $item_price_ct_arr = explode(",", rtrim($item_price_ct_all, ",")); - $item_price_arr = explode(",", $item_price_all); - $gross_profit_arr = explode(",", $gross_profit_all); - $item_price_arr = $gross_profit_arr = []; // 先reset, 等審核才產出 - // 非全汰改=REN - $renovate_flag = ""; - if (preg_match("/M1/", $fp_kind_all)) $renovate_flag = "REN"; - - // 如果售價變動或電梯數量異動,售價則平均分攤到每台 - $avg_fg = 0; - foreach ($item_price_bp_arr as $k => $v) { - if ($v && !isset($item_price_ct_arr[$k])) { - $avg_fg = 1; - break; - } - } - foreach ($item_qty_ori_arr as $k => $v) { - if ($v != $item_qty_arr[$k]) { - $avg_fg = 1; - break; - } - } - if ($price_total_ori != $price_total) $avg_fg = 1; - if ($avg_fg) { - $item_price_ct2_arr = []; - $price_total_item = 0; - foreach ($item_qty_arr as $k => $v) { - $price = floor(($price_total/array_sum($item_qty_arr))*$v); - $item_price_ct2_arr[] = $price; - if ($k < count($item_qty_arr)-1) $price_total_item += $price; - } - $item_price_ct2_arr[count($item_qty_arr)-1] = $price_total - $price_total_item; - $item_price_ct_arr = $item_price_ct2_arr; - } - - $item_no = 1; - for ($i=0; $i您有待簽核案件,請至客戶管理 > 價格審查_汰改,點擊「待簽核」進行作業,謝謝!
"; - $sendmail->sendx($title, $content, $mail_list); - } - } - } - } - - mysqli_close($link); - if ($affected > 0) { - echo ""; - } else { - echo ""; - } -} -?> \ No newline at end of file diff --git a/wms/mkt/mkt/pricereview_renovate-record-update.php b/wms/mkt/mkt/pricereview_renovate-record-update.php deleted file mode 100644 index 73bff7cf..00000000 --- a/wms/mkt/mkt/pricereview_renovate-record-update.php +++ /dev/null @@ -1,461 +0,0 @@ - $v) { - $$k = htmlspecialchars(stripslashes(trim($v))); - } - - $price_total = str_replace(",", "", $price_total); - $price_lowest = str_replace(",", "", $price_lowest); - $pay_amount = str_replace(",", "", $pay_amount); - $pay_all_amount = str_replace(",", "", $pay_all_amount); - $special_fee = str_replace(",", "", $special_fee); - if (empty($deposit_rate)) $deposit_rate = 0; - if (empty($keep_rate)) $keep_rate = 0; - if (empty($warranty_rate)) $warranty_rate = 0; - if (empty($special_fee)) $special_fee = 0; - $status = ($pmstatus == "tosign") ? "YS" : "Y1"; // YS:提交 Y1:保存 - $st_str = ($status == "YS") ? "提交" : "保存"; - $create_at = date("Y-m-d H:i:s"); - $tds = date("Y-m-d"); - - // 同一卷號只限一筆價審 - $db_query = "select contractno from pricereview_main where id = '$id'"; - $result = mysqli_query($link, $db_query); - if ($row = mysqli_fetch_row($result)) { - $contractno = $row[0]; - $sql = "select count(*) from pricereview_main where contractno = '$contractno' and status in ('YS', 'YY')"; - $res = mysqli_query($link, $sql); - $row_c = mysqli_fetch_row($res); - if ($row_c[0] > 0) { - echo ""; - exit; - } - } else { - echo ""; - exit; - } - - // 上傳報價單 - $sql_atta = ""; - $target_dir = "pricereview-uploads/"; - if ($_FILES["attatch1"]["error"] == 0) { - $file_name = $_FILES["attatch1"]["name"]; - $temp_file_name = $_FILES["attatch1"]["tmp_name"]; - $file_size = $_FILES["attatch1"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file1 = $target_dir.$contractno."-price-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$contractno."-price-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_1 = move_uploaded_file($temp_file_name, $target_file1); - $sql_atta .= "attatch1 = '$target_file1', "; - } else { - $target_file1 = ""; - if ($file_price_del == 1) { - foreach (glob($target_dir.$contractno."-price-*") as $todelfile) { - unlink($todelfile); - } - $sql_atta = "attatch1 = NULL, "; - } - } - - // 上傳附表一 - if ($_FILES["attatch2"]["error"] == 0) { - $file_name = $_FILES["attatch2"]["name"]; - $temp_file_name = $_FILES["attatch2"]["tmp_name"]; - $file_size = $_FILES["attatch2"]["size"]; - $img_file_type = pathinfo($file_name, PATHINFO_EXTENSION); - $target_file2 = $target_dir.$contractno."-appendix-".$tds.".".$img_file_type; - $upload_ok = 1; - foreach (glob($target_dir.$contractno."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $upload_res_2 = move_uploaded_file($temp_file_name, $target_file2); - $sql_atta .= "attatch2 = '$target_file2', "; - } else { - $target_file2 = ""; - if ($file_appendix_del == 1) { - foreach (glob($target_dir.$contractno."-appendix-*") as $todelfile) { - unlink($todelfile); - } - $sql_atta = "attatch2 = NULL, "; - } - } - - if (($target_file1 && !$upload_res_1) || ($target_file2 && !$upload_res_2)) { - echo ""; - exit; - } - - // 價格審查單-主文 pricereview_main - $db_query = "update pricereview_main set price_lowest = '$price_lowest', price_total = '$price_total', price_rate = '$price_rate', special_fee = '$special_fee', predeal_date = '$predeal_date', "; - $db_query .= "facilitok_date = '$facilitok_date', penalty = '$penalty', deposit_rate = '$deposit_rate', keep_rate = '$keep_rate', warranty_rate = '$warranty_rate', "; - $db_query .= $sql_atta; - $db_query .= "memo = '$memo', status = '$status', creater = '$user_id', create_at = '$create_at' "; - $db_query .= "where id = '$id'"; - $result = mysqli_query($link, $db_query); - $affected = mysqli_affected_rows($link); - if ($affected > 0) { - // 價格審查單-明細項目 pricereview_item:電梯 - $fp_id_arr = explode(",", $fp_id_all); - $fp_kind_arr = explode(",", $fp_kind_all); - $fp_seat_arr = explode(",", $fp_seat_all); - $fp_numberofstop_arr = explode(",", $fp_numberofstop_all); - $fp_speed_arr = explode(",", $fp_speed_all); - $fp_item_arr = explode(",", $fp_item_all); // 留下的電梯ID - $fp_act_arr = explode(",", $fp_act_all); // U:update I:insert - $fp_del_arr = explode(",", $fp_del); // 刪除的電梯ID - $item_weight_arr = explode(",", $item_weight_all); - $item_op_arr = explode(",", $item_op_all); - $item_spec_arr = explode(",", $item_spec_all); - $item_unit_price_arr = explode(",", $item_unit_price_all); - $item_qty_arr = explode(",", $item_qty_all); - $item_qty_ori_arr = explode(",", $item_qty_ori_all); - $item_price_bp_arr = explode(",", $item_price_bp_all); - $item_price_ct_arr = explode(",", rtrim($item_price_ct_all, ",")); - $item_price_arr = explode(",", $item_price_all); - $gross_profit_arr = explode(",", $gross_profit_all); - $item_price_arr = $gross_profit_arr = []; // 先reset, 等審核才產出 - - // 如果售價變動或電梯數量異動,售價則平均分攤到每台 - $avg_fg = 0; - foreach ($item_price_bp_arr as $k => $v) { - if ($v && !isset($item_price_ct_arr[$k])) { - $avg_fg = 1; - break; - } - } - foreach ($item_qty_ori_arr as $k => $v) { - if ($v != $item_qty_arr[$k]) { - $avg_fg = 1; - break; - } - } - if ($price_total_ori != $price_total) $avg_fg = 1; - if ($avg_fg) { - $item_price_ct2_arr = []; - $price_total_item = 0; - foreach ($item_qty_arr as $k => $v) { - $price = floor(($price_total/array_sum($item_qty_arr))*$v); - $item_price_ct2_arr[] = $price; - if ($k < count($item_qty_arr)-1) $price_total_item += $price; - } - $item_price_ct2_arr[count($item_qty_arr)-1] = $price_total - $price_total_item; - $item_price_ct_arr = $item_price_ct2_arr; - } - - $to_ins_arr = []; // 準備要新增的項目 - if (count($fp_item_arr) > 0) { - foreach ($fp_item_arr as $k => $iid) { - if (empty($iid) && $fp_act_arr[$k] == "I") { - $to_ins_arr[] = $k; - } else { - $fp_kind_arr[$k] = (isset($fp_kind_arr[$k])) ? $fp_kind_arr[$k] : ""; - $fp_seat_arr[$k] = (isset($fp_seat_arr[$k])) ? $fp_seat_arr[$k] : ""; - $fp_numberofstop_arr[$k] = (isset($fp_numberofstop_arr[$k])) ? $fp_numberofstop_arr[$k] : ""; - $fp_speed_arr[$k] = (isset($fp_speed_arr[$k])) ? $fp_speed_arr[$k] : ""; - $note = $fp_kind_arr[$k].",".$fp_seat_arr[$k].",".$fp_numberofstop_arr[$k].",".$fp_speed_arr[$k]; - $db_query = "update pricereview_item set item_unit_price = '$item_unit_price_arr[$k]', item_qty = '$item_qty_arr[$k]', "; - $db_query .= "item_price_bp = '$item_price_bp_arr[$k]', item_price_ct = '$item_price_ct_arr[$k]', note = '$note', "; - $db_query .= "item_spec = '$item_spec_arr[$k]', item_weight = '$item_weight_arr[$k]', item_op = '$item_op_arr[$k]' "; - $db_query .= "where id = '$iid'"; - $result = mysqli_query($link, $db_query); - } - } - } - if (count($fp_del_arr) > 0) { - foreach ($fp_del_arr as $k => $iid) { - if (empty($iid)) continue; - $db_query = "delete from pricereview_item where id = '$iid'"; - $result = mysqli_query($link, $db_query); - } - } - if (count($to_ins_arr) > 0) { - $db_query = "select max(item_no) from pricereview_item where mid = '$id' and item_group = 'A'"; - $result = mysqli_query($link, $db_query); - $row = mysqli_fetch_row($result); - $nextno = $row[0] + 1; - foreach ($to_ins_arr as $v) { - if (!$fp_id_arr[$v]) $fp_id_arr[$v] = 0; - $note = $fp_kind_arr[$v].",".$fp_seat_arr[$v].",".$fp_numberofstop_arr[$v].",".$fp_speed_arr[$v]; - $db_query = "insert into pricereview_item (mid, price_id, item_no, item_spec, item_weight, item_op, item_group, item_unit_price, item_qty, item_price_bp, "; - $db_query .= "item_price_ct, item_price, gross_profit, gross_profit_rate, note) values ("; - $db_query .= "'$id', '$fp_id_arr[$v]', '$nextno', '$item_spec_arr[$v]', '$item_weight_arr[$v]', '$item_op_arr[$v]', 'A', '$item_unit_price_arr[$v]', '$item_qty_arr[$v]', '$item_price_bp_arr[$v]', "; - $db_query .= "'$item_price_ct_arr[$v]', '0', '0', '0', '$note')"; - $result = mysqli_query($link, $db_query); - $nextno++; - } - } - - // 價格審查單-明細項目 pricereview_item:Option加價 - $op_id_arr = explode(",", $op_id_all); - $op_item_arr = explode(",", $op_item_all); // 留下的OPTION ID - $op_act_arr = explode(",", $op_act_all); // U:update I:insert - $op_del_arr = explode(",", $op_del); // 刪除的OPTION ID - $option_seat_all = str_replace("點選", "", $option_seat_all); - $option_seat_arr = explode(",", str_replace("@@", "", $option_seat_all)); - $option_unit_price_arr = explode(",", $option_unit_price_all); - $option_qty_arr = explode(",", $option_qty_all); - $option_price_bp_arr = explode(",", $option_price_bp_all); - $option_memo_arr = explode("@@,", rtrim($option_memo_all, "@@")); - $option_relate_facil_arr = explode(",", htmlspecialchars_decode($option_relate_facil_all)); - $to_ins_arr = []; // 準備要新增的項目 - if (count($op_item_arr) > 0) { - foreach ($op_item_arr as $k => $iid) { - if (empty($iid) && $op_act_arr[$k] == "I") { - $to_ins_arr[] = $k; - } else { - $option_relate_facil_tmp_arr = explode("您有待簽核案件,請至客戶管理 > 價格審查_汰改,點擊「待簽核」進行作業,謝謝!
"; - $sendmail->sendx($title, $content, $mail_list); - } - } - } - } - - mysqli_close($link); - if ($affected > 0) { - echo ""; - } else { - echo ""; - } -} -?> \ No newline at end of file diff --git a/wms/mkt/mkt/specsurvey-create.php b/wms/mkt/mkt/specsurvey-create.php deleted file mode 100644 index f2b45480..00000000 --- a/wms/mkt/mkt/specsurvey-create.php +++ /dev/null @@ -1,2011 +0,0 @@ - - - -Record has added successfully
"; - } -} -*/ -?> - -項次 | -日期版號 | -卷號 | -客戶名稱 | -預定交期 | -規格 | -號機 | - -用途 | -類型 | -修改者 | -修改時間 | -功能 | -
---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - - | - | - | - | - | &function=specsurvey&" class="btn btn-warning btn-sm">檢視 | - -
Record has added successfully
"; - } -} -*/ -?> - -項次 | -日期版號 | -卷號 | -客戶名稱 | -預定交期 | -規格 | -號機 | - -用途 | -類型 | -修改者 | -修改時間 | -功能 | -
---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - - | - | - | - | - | &function=specsurvey_renovate&" class="btn btn-warning btn-sm">檢視 | - -
整機單價+ | +整機單價+ | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
停數 | 速度 | 開門方式 | -規格 | +規格 | 單價 | 數量 | 複價 | +售價 | "> | "> | -||||||||
+ | =$val["item_spec"];?> [規調] | +"> | +"> | +"> | +數量 | 複價 | 備註 | -所屬電梯 | +所屬電梯項次 | $val) { $item_amt_B_all += $val["item_price_bp"]; ?> @@ -497,7 +533,7 @@ hr {"> | "> | "> | -", $val["option_relate_spec"]); ?> | +|||||
保固延長 | +保固延長 | |||||||||||||||||
項次 | @@ -573,6 +609,7 @@ hr {數量(月) | 複價 | 備註 | +所屬電梯項次 | "> | "> | "> | -"> | +"> | +|||||||||
小計 | -+ | + |
整機單價+ | +整機單價+ | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
停數 | 速度 | 開門方式 | -規格 | +規格 | 單價 | 數量 | 複價 | +售價 |
發票日期 | -數量 | -單價 | -費用項目 | -原幣報銷金額 | -說明 | -發票號碼 | -功能 | +
---|
發票日期 | +數量 | +單價 | +費用項目 | +原幣報銷金額 | +說明 | +發票號碼 | +功能 | -
---|---|---|---|---|---|---|---|
= $pay['FeeDate'] ?> | @@ -246,11 +239,11 @@ $feetype = mysqli_fetch_all($feetype_query, MYSQLI_ASSOC); } ?>