Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bagas Udi Sahsangka committed Dec 1, 2021
1 parent 197dc86 commit c833829
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,37 +242,37 @@ protected function printSlip($data, $printer_id)
$printer->setJustification(Printer::JUSTIFY_CENTER);
$printer->text("LAPORAN PENDAPATAN PARKIR\n");
$printer->text($setting->nama_lokasi . "\n");
$printer->text("\n\n");
$printer->text('Tanggal: ' . date('d-m-Y', strtotime($data['dateRange'][0])) . ' s/d ' . date('d-m-Y', strtotime($data['dateRange'][1])));
$printer->text("\n\n");
$printer->text("LAPORAN PENDAPATAN PER JENIS KENDARAAN\n\n");
$printer->setJustification(Printer::JUSTIFY_LEFT);
$printer->text("LAPORAN PENDAPATAN PER JENIS KENDARAAN\n");

foreach ($data['perKendaraan'] as $d) {
$printer->text($d->jenis_kendaraan);
$printer->text("+ " . $d->jenis_kendaraan);
$printer->text("\n");
$printer->text(str_pad('+ Member', 15, ' ') . ' : ' . number_format($d->jumlah_member, 0, ',', '.'));
$printer->text(str_pad(' - Member', 15, ' ') . ' : ' . number_format($d->jumlah_member, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Reguler', 15, ' ') . ' : ' . number_format($d->jumlah_reguler, 0, ',', '.'));
$printer->text(str_pad(' - Reguler', 15, ' ') . ' : ' . number_format($d->jumlah_reguler, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Total', 15, ' ') . ' : ' . number_format($d->jumlah_member + $d->jumlah_reguler, 0, ',', '.'));
$printer->text(str_pad(' - Total', 15, ' ') . ' : ' . number_format($d->jumlah_member + $d->jumlah_reguler, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Pendapatan', 15, ' ') . ' : Rp ' . number_format($d->pendapatan + $d->denda, 0, ',', '.'));
$printer->text(str_pad(' - Pendapatan', 15, ' ') . ' : Rp ' . number_format($d->pendapatan + $d->denda, 0, ',', '.'));
$printer->text("\n\n");
}

$printer->text("LAPORAN PENDAPATAN PER PETUGAS\n");

$printer->setJustification(Printer::JUSTIFY_CENTER);
$printer->text("LAPORAN PENDAPATAN PER PETUGAS\n\n");
$printer->setJustification(Printer::JUSTIFY_LEFT);
foreach ($data['perPetugas'] as $d) {
$printer->text($d->operator);
$printer->text("+ " . $d->operator);
$printer->text("\n");
$printer->text(str_pad('+ Member', 15, ' ') . ' : ' . number_format($d->jumlah_member, 0, ',', '.'));
$printer->text(str_pad(' - Member', 15, ' ') . ' : ' . number_format($d->jumlah_member, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Reguler', 15, ' ') . ' : ' . number_format($d->jumlah_reguler, 0, ',', '.'));
$printer->text(str_pad(' - Reguler', 15, ' ') . ' : ' . number_format($d->jumlah_reguler, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Total', 15, ' ') . ' : ' . number_format($d->jumlah_member + $d->jumlah_reguler, 0, ',', '.'));
$printer->text(str_pad(' - Total', 15, ' ') . ' : ' . number_format($d->jumlah_member + $d->jumlah_reguler, 0, ',', '.'));
$printer->text("\n");
$printer->text(str_pad('+ Pendapatan', 15, ' ') . ' : Rp ' . number_format($d->pendapatan + $d->denda, 0, ',', '.'));
$printer->text(str_pad(' - Pendapatan', 15, ' ') . ' : Rp ' . number_format($d->pendapatan + $d->denda, 0, ',', '.'));
$printer->text("\n");
}

Expand Down

0 comments on commit c833829

Please sign in to comment.