Merged in izzati-hotfix-uum (pull request #388)
update nopelanggan dalam task uum
This commit is contained in:
@@ -191,7 +191,7 @@ public function getSummaryLaporanPelangganAktif(Request $request)
|
|||||||
// 1️⃣ Ambil semua pelanggan tahun ini
|
// 1️⃣ Ambil semua pelanggan tahun ini
|
||||||
$pelanggan = Customer::whereYear('tarikhdaftar', $year)
|
$pelanggan = Customer::whereYear('tarikhdaftar', $year)
|
||||||
->select('id','nama','kpbaru','kplama','t_lahir','jantina',
|
->select('id','nama','kpbaru','kplama','t_lahir','jantina',
|
||||||
'kodkerja','poskod','kodcaw','tarikhdaftar','tujuangadai')
|
'kodkerja','poskod','kodcaw','tarikhdaftar','tujuangadai','nopelanggan')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
$connections = $this->getActiveCawanganConnections();
|
$connections = $this->getActiveCawanganConnections();
|
||||||
@@ -320,6 +320,7 @@ public function getSummaryLaporanPelangganAktif(Request $request)
|
|||||||
return [
|
return [
|
||||||
'cawangan' => $row->kodcaw ?? '-',
|
'cawangan' => $row->kodcaw ?? '-',
|
||||||
'nama' => $row->nama,
|
'nama' => $row->nama,
|
||||||
|
'nopelanggan' => $row->nopelanggan,
|
||||||
'nokp' => $nokp ?? '-',
|
'nokp' => $nokp ?? '-',
|
||||||
'tarikhdaftar' => Carbon::parse($row->tarikhdaftar)->format('d-m-Y'),
|
'tarikhdaftar' => Carbon::parse($row->tarikhdaftar)->format('d-m-Y'),
|
||||||
'umur' => $umur,
|
'umur' => $umur,
|
||||||
|
|||||||
Reference in New Issue
Block a user