diff --git a/wms/WriteOff.xlsx b/wms/WriteOff.xlsx index 33291201..61407291 100644 Binary files a/wms/WriteOff.xlsx and b/wms/WriteOff.xlsx differ diff --git a/wms/account-receivable-.xlsx b/wms/account-receivable-.xlsx new file mode 100644 index 00000000..d5274026 Binary files /dev/null and b/wms/account-receivable-.xlsx differ diff --git a/wms/account-receivable-check.php b/wms/account-receivable-check.php index 32b0aa04..ce07ccdc 100644 --- a/wms/account-receivable-check.php +++ b/wms/account-receivable-check.php @@ -2,35 +2,7 @@ include "./header.php"; $Bill = $_POST['Bill']; $Bill = json_decode($Bill, true); -print_r($Bill); - -// $sql_received = "SELECT * from account_received where BillNo = '$Bill[0]' ORDER BY `pay_id` ASC"; -// $pay_received = mysqli_query($link, $sql_received); -// $had_received_amount = intval(0); -// $had_invoice_amount=intval(0); -// $status_summary = intval(0); -// if (mysqli_num_rows($pay_received) > 0) { -// foreach ($pay_received as $received) { -// $had_received_amount += intval($received['received_amount']); -// $had_invoice_amount += intval($received['invoice_amount']); -// if(in_array(intval($received['status']),array(0,4,5,99))){ -// $tem_status = intval(0); -// }else{ -// $tem_status = intval($received['status']); -// } -// if($status_summary < $tem_status){ -// $status_summary = $tem_status; -// } -// } -// } - -// $unreceived_amount = intval($Bill[12]) - intval($had_received_amount); -// $uninvoice_amount = intval($Bill[12]) - intval($had_invoice_amount); -// $Bill[19] =$had_invoice_amount; -// $Bill[20] =$had_received_amount; -// $Bill[21] =$uninvoice_amount; -// $Bill[22] =$unreceived_amount; -// $Bill[23] =$status_summary; + $data = json_encode($Bill); ?> - -
+
- - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + $value) { + foreach ($arrayData as $key => $value) { ?> @@ -351,19 +516,45 @@ $data = json_encode($arrayData); - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
合約號 部門經理營業員客戶名稱目前應收作番狀態經理營業員客戶名稱簽約款應收簽約金額簽約最大催收次數簽約最小催收次數二次款應收二次金額二次最大催收次數二次最小催收次數貨抵工地款應收貨抵工地金額貨抵工地最大催收次數貨抵工地最小催收次數安裝款應收安裝金額安裝最大催收次數安裝最小催收次數試車款應收試車金額試車最大催收次數試車最小催收次數官檢款應收官檢金額官檢最大催收次數官檢最小催收次數移交款應收移交金額移交最大催收次數移交最小催收次數尾款應收尾款金額尾款最大催收次數尾款最小催收次數合約總金額目前應收已開發票金額已收金額 操作