mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-26 07:53:56 +00:00
invoice-backend
This commit is contained in:
+2
-3
@@ -23,11 +23,10 @@ class UpdateCustomerRelationLogic
|
||||
$this->updatesCustomerRelation = $updatesCustomerRelation;
|
||||
}
|
||||
|
||||
public function execute(Request $request){
|
||||
public function execute(int $companyId, Request $request){
|
||||
|
||||
try{
|
||||
|
||||
$object = new CustomerRelationObject($request->input('forwarder_id'), $request->input('company_id'), $request->input('customer_rate'), $request->input('wave'));
|
||||
$object = new CustomerRelationObject(1, $companyId, $request->input('customer_rate'), $request->input('wave'));
|
||||
return $this->updatesCustomerRelation->execute($object);
|
||||
return new JsonResponse([], HttpStatus::REQUEST_ACCEPTED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user