LAPORAN DATA PEMBELIAN

@foreach($datas as $data) @foreach($data->detail as $detail)
Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Attempt to read property "harga_barang" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Attempt to read property "harga_beli" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Attempt to read property "harga_barang" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Attempt to read property "harga_beli" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Undefined variable $detail in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74

Warning: Attempt to read property "diskon" on null in /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/resources/views/laporan/pembelian/cetak_pembelian.blade.php on line 74
@php $gttl += $hargaDiskon * $detail->jumlah; $ttlb += $detail->jumlah; @endphp @endforeach @endforeach
No No Pembelian Tanggal Pembelian Supplier Keterangan
{{ $no++ }} {{ $data->no_pembelian }} {{ $data->tgl_pembelian }} {{ $data->supplier->nm_supplier }} {{ $data->keterangan }}
Kode Barang Nama Barang Harga Jumlah Disc Total
{{ $detail->harga_barang->kd_barang }} {{ $detail->harga_barang->barang->nm_barang }} Rp.{{ number_format($detail->harga_barang->harga_beli) }} {{ $detail->jumlah }} {{ $detail->diskon }}% Rp.{{ number_format($hargaDiskon * $detail->jumlah) }}
Grand Total : Rp. {{ number_format($gttl) }}
Total Qty : {{ $ttlb }}