fix over weight minimum charge

This commit is contained in:
Omair Saleh
2022-12-14 20:05:50 +08:00
parent f56bfb0309
commit 69f98125a0
2 changed files with 2 additions and 2 deletions
@@ -62,6 +62,7 @@ abstract class AbstractControllerLogic
return $response;
} catch (ErrorException|GeneralExceptions|TypeError $exception){
dd($exception);
return (new ApiResponseObject($this->getNotificationTitle().' failed', $exception->getMessage(),
!in_array($exception->getCode(), [0, 42000]) ? $exception->getCode() : HttpStatus::SERVER_ERROR))->handler();
@@ -95,4 +96,4 @@ abstract class AbstractControllerLogic
return $this->response(json_decode($collection->response()->getContent(), true));
}
}
}
@@ -152,7 +152,6 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic
$hasMinimumCharge = null;
foreach ($container->packingLists as $packingList){
dd($companyModule);
if($packingList->owner->companyModule->id !== $companyModule->id) continue;
$containerPackingLists->push($packingList);