root 4 years ago
parent
commit
96a625007c
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      app/Http/Controllers/Api/CompoundResourceController.php

+ 4
- 5
app/Http/Controllers/Api/CompoundResourceController.php View File

@@ -697,7 +697,7 @@ class CompoundResourceController extends BaseController

array_push($data, array('kpd' => $kpd));

$this->dispatch(new StoreCompoundEPBT($request->all(), $kpd, $staff->StaffDetail->full_name, $staff->StaffDetail->no_badan, $faulty->nama));
// $this->dispatch(new StoreCompoundEPBT($request->all(), $kpd, $staff->StaffDetail->full_name, $staff->StaffDetail->no_badan, $faulty->nama));

return $this->sendResponse($data, 'Berjaya simpan rekod kompaun!');
// }
@@ -925,7 +925,7 @@ class CompoundResourceController extends BaseController
"no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-',
"tindakan" => $request->tindakan,
// "tindakan" => $request->tindakan,
"tempoh" => $request->tempoh,
"created_n" => Carbon::now()->toDateTimeString(),
];
@@ -1017,9 +1017,8 @@ class CompoundResourceController extends BaseController
"no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-',
"tindakan" => $request->tindakan,
// "tindakan" => $request->tindakan,
"tempoh" => $request->tempoh,
"bil_haiwan" => $request->bil_haiwan,
"created_n" => Carbon::now()->toDateTimeString(),
];
}
@@ -1323,7 +1322,7 @@ class CompoundResourceController extends BaseController

array_push($data, array('kpd' => $kpd));

$this->dispatch(new StoreCompoundEPBT($request->all(), $kpd, $staff->StaffDetail->full_name, $staff->StaffDetail->no_badan, $faulty->nama));
// $this->dispatch(new StoreCompoundEPBT($request->all(), $kpd, $staff->StaffDetail->full_name, $staff->StaffDetail->no_badan, $faulty->nama));

return $this->sendResponse($data, 'Berjaya simpan rekod kompaun!');


Loading…
Cancel
Save