billing fix up

This commit is contained in:
omair saleh
2022-09-20 09:05:08 +08:00
parent f774e90d50
commit 0e8c74bec2
@@ -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->format('Y-m-d'));
dd($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;