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); ?>
目前應收 | 已開發票金額 | 未開發票金額 | 已收金額 | 未收金額 |
---|---|---|---|---|
= number_format(round($Bill[12])) ?> | = number_format(round($Bill[19])) ?> | = number_format(round($Bill[21])) ?> | = number_format(round($Bill[20])) ?> | = number_format(round($Bill[22])) ?> |
簽約款 | 二次款 | 貨抵工地款 | 安裝款 | 試車款 | 官檢款 | 交車款 |
---|---|---|---|---|---|---|
= number_format(round($Bill[5])) ?> | = number_format(round($Bill[6])) ?> | = number_format(round($Bill[7])) ?> | = number_format(round($Bill[8])) ?> | = number_format(round($Bill[9])) ?> | = number_format(round($Bill[10])) ?> | = number_format(round($Bill[11])) ?> |
發票日期 | 發票金額 | 發票號碼 | 收款日期 | 收款金額 | 備註 | 狀態 | 功能 |
---|---|---|---|---|---|---|---|
= $received['invoice_date'] ?> | = number_format($received['invoice_amount']) ?> | = $received['invoice_no'] ?> | = $received['received_date'] ?> | = number_format($received['received_amount']) ?> | = $received['remark'] ?> | 進行中"; break; case 1: echo "催收"; break; case 2: echo "法務件 (發函)"; break; case 3: echo "法務件 (訴訟)"; break; case 4: echo "折讓"; break; case 5: echo "壞帳"; break; case 99: echo "完成"; break; } ?> |