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['receivable_budget'])) ?> |
簽約款 | 二次款 | 貨抵工地款 | 安裝款 | 試車款 | 官檢款 | 交車款 | 尾款 |
---|---|---|---|---|---|---|---|
= number_format(round($Bill['sign'][1])) ?> | = number_format(round($Bill['second'][1])) ?> | = number_format(round($Bill['arrive'][1])) ?> | = number_format(round($Bill['install'][1])) ?> | = number_format(round($Bill['tryrun'][1])) ?> | = number_format(round($Bill['check'][1])) ?> | = number_format(round($Bill['delivery'][1])) ?> | = number_format(round($Bill['final'][1])) ?> |
發票日期 | 發票金額 | 發票號碼 | 收款日期 | 收款金額 | 備註 | 狀態 | 功能 |
---|---|---|---|---|---|---|---|
= $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; } ?> |