Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment)

- Fix an error reported by KS on settings > Warehouses > Extra Charges
This commit is contained in:
Dillon Ngo
2026-07-24 15:41:27 +08:00
parent f834bfd63a
commit 390510e8aa
@@ -136,6 +136,7 @@ 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 = 0;
if (is_object($selected_warehouse_rate)) {
$warehouse_rate = $selected_warehouse_rate->amount;
} elseif (is_array($selected_warehouse_rate)) {