From f774e90d5039200ba809ade96333a63677f048ca Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 20 Sep 2022 09:04:29 +0800 Subject: [PATCH] billing fix up --- .../ControllersLogic/CreateShippingInvoiceTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php index c7687e81..67175c6b 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreateShippingInvoiceTransactionLogic.php @@ -133,6 +133,7 @@ class CreateShippingInvoiceTransactionLogic extends AbstractControllerLogic $segment_price = $segment_price ? $segment_price : 0; $packing_list_drop_date = Carbon::parse(PackingList::where('reference', $packing_list->reference)->where('type', 1)->first()->transports->first()->drop_date)->format('d/m/Y'); + dd($packing_list_drop_date->format('Y-m-d')); $base_price = $this->getConstantByKey($base_price_constant, Carbon::parse($packing_list_drop_date)->format('Y-m-d')); $warehouseId = $order->orderRoles()->where('role_id', OrderRoleTypes::ORIGIN_WAREHOUSE)->first()->company_module_id;