input->post('tgl'); $supplier = $this->input->post('id'); $pecah = explode(" - ",$tgl); $tglawal = date_format(date_create($pecah[0]),"Y-m-d"); $tglakhir = date_format(date_create($pecah[1]),"Y-m-d"); $data = $this->M_pempers->kartupiutang($supplier,$tglawal,$tglakhir)->result(); $array_hasil = []; foreach ($data as $a) { $rowspan_key = "{$a->invoice_date}-{$a->invoice_no}-{$a->invoice_value}"; if ( !isset( $array_hasil[$rowspan_key] ) ) { $array_hasil[$rowspan_key] = []; } $array_hasil[$rowspan_key][] = $a; } $this->load->view('tabel', ['array_hasil' => $array_hasil]); } $baris_invoice_date): ?> 0 ): ?> 0 ): ?>
INVOICE BUKTI
TGL NO TGL NO PIUTANG BAYAR
invoice_date ?> invoice_no ?> payment_date ?> reference_no ?> Rp. Rp. payment_invoice) ?>
payment_date ?> reference_no ?> Rp. payment_invoice) ?>