diff --git a/app/Http/Controllers/CustomerController.php b/app/Http/Controllers/CustomerController.php index 8efc9a6..afc772f 100644 --- a/app/Http/Controllers/CustomerController.php +++ b/app/Http/Controllers/CustomerController.php @@ -1102,4 +1102,20 @@ public function AdminsearchCustomerBySAG(Request $request) return response()->json($results); } +// public function createNotaArcc($kodcaw, Request $request) +// { +// $current = Carbon::now(); + +// $customer = Customer::on('mysql7')->create([ +// 'kodcaw' => $kodcaw, +// 'tarikhdaftar' => $current->toDateString(), +// 'nota_arcc' => $request->nota_arcc, +// 'teller' => $request->teller, +// 'aktif' => 'A' +// ]); + +// return response()->json($customer, 201); +// } + + } diff --git a/routes/web.php b/routes/web.php index 082da17..8d76ddb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -62,6 +62,7 @@ $router->group(['prefix'=>'api'], function () use ($router){ $router->get('customer/anggota',['uses'=>'CustomerController@anggotaKoperasi']); $router->get('customer/eachcawangan/{ic}',['uses'=>'CustomerController@showCustomerByEachCawangan']); $router->put('customers/{noic}/assign-anggota', ['uses' => 'CustomerController@assignAnggota']); + $router->post('/customers/update-tag-pdpa', ['uses' => 'CustomerController@updateTagPdpa']); //arcc $router->get('customer/searchbyname',['uses'=>'CustomerController@searchByName']);