add insert tukar cawangan
This commit is contained in:
@@ -860,4 +860,25 @@ class CustomerController extends Controller
|
||||
$audit->updated_at = $current;
|
||||
$audit->save();
|
||||
}
|
||||
|
||||
public function TukarCawangan(Request $request, $kodcaw)
|
||||
{
|
||||
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
// Log::info('dalam tukar taraf');
|
||||
$audit = new Audit();
|
||||
$audit->users = $request->namaoperasi;
|
||||
$audit->actions = "Tukar Cawangan";
|
||||
$audit->old_data = json_encode($request->old_data);
|
||||
$audit->new_data = json_encode($request->new_data);
|
||||
$audit->kodcaw = $kodcaw;
|
||||
$audit->created_at = $current;
|
||||
$audit->updated_at = $current;
|
||||
$audit->save();
|
||||
|
||||
return json_encode(['status'=> 'success']);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user