mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Merge branch 'dillon/137-project-upgrade-update-1A' into vapor/production
This commit is contained in:
@@ -135,7 +135,12 @@ class CreateInvoiceTransactionProcessor
|
||||
|
||||
$warehouseId = $order->orderRoles()->where('role_id', OrderRoleTypes::ORIGIN_WAREHOUSE)->first()->company_module_id;
|
||||
$selected_warehouse_rate = $this->getConstantByKey($warehouse_rate_constant, $warehouseId);
|
||||
$warehouse_rate = is_object($selected_warehouse_rate) ? $selected_warehouse_rate->amount : 0;
|
||||
|
||||
if (is_object($selected_warehouse_rate)) {
|
||||
$warehouse_rate = $selected_warehouse_rate->amount;
|
||||
} elseif (is_array($selected_warehouse_rate)) {
|
||||
$warehouse_rate = $selected_warehouse_rate['amount'] ?? 0;
|
||||
}
|
||||
|
||||
$stateId = $address->state_id;
|
||||
$state_rate_constant = $this->getConstantByKey($state_rate_constant, $stateId);
|
||||
|
||||
Reference in New Issue
Block a user