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
@@ -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);