invoice-backend

This commit is contained in:
mhmj
2019-07-20 11:51:34 +08:00
parent 6c532dd738
commit c11e8dc061
11 changed files with 75 additions and 185 deletions
@@ -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){