From c015214b9160be761808548421f6b36cd23b6438 Mon Sep 17 00:00:00 2001 From: Ellin Date: Tue, 27 Feb 2024 17:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=87=89=E6=94=B6=E5=B8=B3=E6=AC=BE(=E6=96=B0?= =?UTF-8?q?=E6=A2=AF)=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=A9=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=8B=BF=E6=8E=89datatable=E6=87=89=E6=94=B6?= =?UTF-8?q?=E5=B8=B3=E6=AC=BE(=E8=96=AA=E8=B8=A2)=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9F=A5=E8=A9=A2=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=8B=BF=E6=8E=89?= =?UTF-8?q?datatable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/account-receivable-new-index.php | 193 ++++++++++++++++++++++----- 1 file changed, 160 insertions(+), 33 deletions(-) diff --git a/wms/account-receivable-new-index.php b/wms/account-receivable-new-index.php index 59fc1f88..85b6554b 100644 --- a/wms/account-receivable-new-index.php +++ b/wms/account-receivable-new-index.php @@ -305,7 +305,7 @@ foreach ($query_wip as $wip) { $arrayData[$wip['contractno']]['facility_status'] .= $wip['facilityno'] . " (" . $wip['real_arrival_date'] . "貨抵工地) ; "; } elseif ($wip['real_contract_arrival_date'] != NULL && $wip['real_contract_arrival_date'] !== '1970-01-01' && $wip['delivery_date'] !== '1970-01-11' && !empty($wip['real_contract_arrival_date'])) { $arrayData[$wip['contractno']]['facility'][$wip['facilityno']]['status'] = $wip['real_contract_arrival_date'] . "預計出貨"; - $arrayData[$wip['contractno']]['facility_status'] .= $wip['facilityno'] . " (" . $wip['real_contract_arrival_date'] . "預計出貨) ; "; + $arrayData[$wip['contractno']]['facility_status'] .= $wip['facilityno'] . " (" .date('Y-m-d',strtotime($wip['real_contract_arrival_date'])) . "預計出貨) ; "; } elseif ($wip['estimated_shipping_date'] != NULL && $wip['estimated_shipping_date'] !== '1970-01-01' && $wip['delivery_date'] !== '1970-01-11' && !empty($wip['estimated_shipping_date'])) { $arrayData[$wip['contractno']]['facility'][$wip['facilityno']]['status'] = $wip['estimated_shipping_date'] . "預計出港"; $arrayData[$wip['contractno']]['facility_status'] .= $wip['facilityno'] . " (" . $wip['estimated_shipping_date'] . "預計出港) ; "; @@ -761,7 +761,7 @@ $excel_contract_boga_array = array(); $excel_contract_noboga_array = array(); $excel_facility_array = array(); -foreach ($arrayData as $key => $value) { +foreach ($arrayData as $key => &$value) { $excel_contract_array[$key] = array_fill(0, 76, ''); $excel_contract_array[$key][0] = (isset($value['BillNo']) && !is_null($value['BillNo'])) ? $value['BillNo'] : ''; @@ -781,6 +781,7 @@ foreach ($arrayData as $key => $value) { $excel_contract_array[$key][14] = (isset($value['receivable_budget']) && !is_null($value['receivable_budget'])) ? $value['receivable_budget'] : 0; $excel_contract_array[$key][15] = (isset($value['invoice_budget']) && !is_null($value['invoice_budget'])) ? number_format(round($value['invoice_budget'])) : '0'; $excel_contract_array[$key][16] = (isset($value['received_budget']) && !is_null($value['received_budget'])) ? $value['received_budget'] : 0; + $value['collect_budget'] = ($excel_contract_array[$key][14] - $excel_contract_array[$key][16]) > 0 ? $excel_contract_array[$key][14] - $excel_contract_array[$key][16] : 0; $excel_contract_array[$key][17] = number_format(round($excel_contract_array[$key][14] - $excel_contract_array[$key][16])); $excel_contract_array[$key][18] = (isset($value['collect_month']) && !is_null($value['collect_month'])) ? number_format(round($value['collect_month'])) : '0'; $excel_contract_array[$key][19] = (isset($value['facility_num']) && !is_null($value['facility_num'])) ? number_format(round($value['facility_num'])) : '0'; @@ -1110,6 +1111,7 @@ $noboga_data = json_encode($excel_contract_noboga_array); +
@@ -1125,16 +1127,55 @@ $noboga_data = json_encode($excel_contract_noboga_array); + + + + -
合約催收次數 - - ≤ 催收次數 ≤ - + + ≤ 催收次數 ≤ + + +
合約催收金額 + + ≤ 催收金額 ≤ +
+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ +
+ + +
+
+ + +
+
+ + +
+
- +
- - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -1235,22 +1276,22 @@ include "./footer.php"; $value) { ?> - - - - - - - - + + + + + + + + - - + + @@ -1327,6 +1368,92 @@ include "./footer.php";
合約號部門主管營業員客戶作番狀態合約-設備金額合約-安裝金額合約總金額合約目前應收已開發票金額已收金額金額催收金額金額催收次數作番數量合約號部門主管營業員客戶作番狀態合約
設備金額
合約
安裝金額
合約
總金額
合約
目前應收
合約
已開票金額
合約
已收金額
合約
催收金額
合約
催收次數
作番數量 訂金
名稱
訂金
合約金額
" . $value['DeptName'] ?>" . $value['ManagerName'] ?>" . $value['PersonName'] ?>" . $value['CustomerName'] ?>
" . $value['DeptName'] ?>" . $value['ManagerName'] ?>" . $value['PersonName'] ?>" . $value['CustomerName'] ?>