export parcel summary

This commit is contained in:
omair saleh
2022-09-20 03:32:49 +08:00
parent 65e0fe668d
commit 5a69a31628
@@ -80,18 +80,7 @@ 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,