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); ?> - -
合約號 | 部門 | -經理 | -營業員 | -客戶名稱 | - -目前應收 | - -作番狀態 | +經理 | +營業員 | +客戶名稱 | +簽約款 | +應收簽約金額 | +簽約最大催收次數 | +簽約最小催收次數 | +二次款 | +應收二次金額 | +二次最大催收次數 | +二次最小催收次數 | +貨抵工地款 | +應收貨抵工地金額 | +貨抵工地最大催收次數 | +貨抵工地最小催收次數 | +安裝款 | +應收安裝金額 | +安裝最大催收次數 | +安裝最小催收次數 | +試車款 | +應收試車金額 | +試車最大催收次數 | +試車最小催收次數 | +官檢款 | +應收官檢金額 | +官檢最大催收次數 | +官檢最小催收次數 | +移交款 | +應收移交金額 | +移交最大催收次數 | +移交最小催收次數 | +尾款 | +應收尾款金額 | +尾款最大催收次數 | +尾款最小催收次數 | +合約總金額 | +目前應收 | +已開發票金額 | +已收金額 | + -操作 | +
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
= $key ?> | @@ -351,19 +516,45 @@ $data = json_encode($arrayData);= $value[2] ?> | = $value[4] ?> | = $value[5] ?> | - -= number_format(round($value['receivable_budget'])) ?> | - -= $value['facilities'] ?> | += number_format(round($value['sign'][1])) ?> | += isset($value['sign'][3]) ? number_format(round($value['sign'][3])) : '--' ?> | += isset($value['sign']['min']) ? $value['sign']['min'] : '--' ?> | += isset($value['sign']['max']) ? $value['sign']['max'] : '--' ?> | += isset($value['second'][1]) ? number_format(round($value['second'][1])) : '--' ?> | += isset($value['second'][3]) ? number_format(round($value['second'][3])) : '--' ?> | += isset($value['second']['min']) ? $value['second']['min'] : '--' ?> | += isset($value['second']['max']) ? $value['second']['max'] : '--' ?> | += isset($value['arrive'][1]) ? number_format(round($value['arrive'][1])) : '--' ?> | += isset($value['arrive'][3]) ? number_format(round($value['arrive'][3])) : '--' ?> | += isset($value['arrive']['min']) ? $value['arrive']['min'] : '--' ?> | += isset($value['arrive']['max']) ? $value['arrive']['max'] : '--' ?> | += isset($value['install'][1]) ? number_format(round($value['install'][1])) : '--' ?> | += isset($value['install'][3]) ? number_format(round($value['install'][3])) : '--' ?> | += isset($value['install']['min']) ? $value['install']['min'] : '--' ?> | += isset($value['install']['max']) ? $value['install']['max'] : '--' ?> | += isset($value['tryrun'][1]) ? number_format(round($value['tryrun'][1])) : '--' ?> | += isset($value['tryrun'][3]) ? number_format(round($value['tryrun'][3])) : '--' ?> | += isset($value['tryrun']['min']) ? $value['tryrun']['min'] : '--' ?> | += isset($value['tryrun']['max']) ? $value['tryrun']['max'] : '--' ?> | += isset($value['check'][1]) ? number_format(round($value['check'][1])) : '--' ?> | += isset($value['check'][3]) ? number_format(round($value['check'][3])) : '--' ?> | += isset($value['check']['min']) ? $value['check']['min'] : '--' ?> | += isset($value['check']['max']) ? $value['check']['max'] : '--' ?> | += isset($value['delivery'][1]) ? number_format(round($value['delivery'][1])) : '--' ?> | += isset($value['delivery'][3]) ? number_format(round($value['delivery'][3])) : '--' ?> | += isset($value['delivery']['min']) ? $value['delivery']['min'] : '--' ?> | += isset($value['delivery']['max']) ? $value['delivery']['max'] : '--' ?> | += isset($value['final'][1]) ? number_format(round($value['final'][1])) : '--' ?> | += isset($value['final'][3]) ? number_format(round($value['final'][3])) : '--' ?> | += isset($value['final']['min']) ? $value['final']['min'] : '--' ?> | += isset($value['final']['max']) ? $value['final']['max'] : '--' ?> | += isset($value['total_budget']) ? number_format(round($value['total_budget'])) : '--' ?> | += isset($value['receivable_budget']) ? number_format(round($value['receivable_budget'])) : '--' ?> | += isset($value['invoice_budget']) ? number_format(round($value['invoice_budget'])) : '--' ?> | += isset($value['received_budget']) ? number_format(round($value['received_budget'])) : '--' ?> | +