billing fix up

This commit is contained in:
omair saleh
2022-09-20 09:06:10 +08:00
parent 0e8c74bec2
commit 499d1f9759
@@ -133,7 +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);
dd(Carbon::parse($packing_list_drop_date));
$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;