estimate container shipping cost

This commit is contained in:
Omair Saleh
2022-12-01 18:44:04 +08:00
parent 0cb3bd6ce3
commit 5480a55edc
+7 -1
View File
@@ -493,7 +493,13 @@ Route::get('/container/billing/{month}/{year}', function($month, $year){
->first();
$packing_list_drop_date = PackingList::where('reference', $packingList->reference)->where('type', 1)->first()->transports->first()->drop_date;
$warehouseList = PackingList::where('reference', $packingList->reference)->where('type', 1)->first();
if($warehouseList){
$packing_list_drop_date = $warehouseList->transports->first()->drop_date;
} else {
echo '<------------- can\'t find arrival date -------------->';
}
$order = $packingList->owner;
$address = $order->addresses()->where('status', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED)->first();
$warehouseId = $order->orderRoles()->where('role_id', OrderRoleTypes::ORIGIN_WAREHOUSE)->first()->company_module_id;