mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-22 05:54:14 +00:00
invoice-backend
This commit is contained in:
@@ -30,10 +30,10 @@ class UpdateServiceFeesLogic
|
||||
}
|
||||
|
||||
|
||||
public function execute(Request $request){
|
||||
public function execute(int $forwarderId, Request $request){
|
||||
try{
|
||||
$object = new ServiceObject($request->input('type'), $request->input('forwarder_id'), $request->input('name'), $request->input('description'), $request->input('cost'));
|
||||
return $this->updatesServiceFees->execute($request->input('id'), $object);
|
||||
$object = new ServiceObject($request->input('type'), $forwarderId, $request->input('name'), $request->input('description'), $request->input('cost'));
|
||||
return $this->updatesServiceFees->execute($object, $request->input('id'));
|
||||
return new JsonResponse([],HttpStatus::REQUEST_ACCEPTED);
|
||||
|
||||
}catch (\Exception $exception){
|
||||
|
||||
Reference in New Issue
Block a user