export parcel summary

This commit is contained in:
omair saleh
2022-09-20 03:30:43 +08:00
parent 0cd2272e6c
commit 65e0fe668d
@@ -80,7 +80,18 @@ class ContainersSheet implements WithHeadings, WithHeadingRow, WithMapping, Shou
}
dd([
$container->reference,
$container->loading_date,
$currentSchedule ? $currentSchedule->etd : null,
$currentSchedule ? $currentSchedule->eta : null,
$scheduleHistory ? count($scheduleHistory) : 0,
$transport ? $transport->drop_date : null,
$status,
$container->packages()->sum('quantity'),
$container->packages()->sum(DB::raw('(width/100) * (height/100) * (length/100) * quantity')),
]);
return [
$container->reference,
$container->loading_date,