mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
fix export arrival list
This commit is contained in:
@@ -50,7 +50,6 @@ class ExportsArrivedParcel implements WithHeadings, WithHeadingRow, WithMapping,
|
||||
*/
|
||||
public function map($packingList): array
|
||||
{
|
||||
dd($packingList->packages);
|
||||
$order = $packingList->owner;
|
||||
|
||||
$connection = $order->companyModule()->first()->inviters()->withPivot('invitee_reference')->first();
|
||||
@@ -61,7 +60,7 @@ class ExportsArrivedParcel implements WithHeadings, WithHeadingRow, WithMapping,
|
||||
$arrival_date = $packingList->transports()->first()->drop_date->format('d-m-Y');
|
||||
|
||||
return [
|
||||
array_map(function ($package) use($order, $marking, $warehouse, $arrival_date) {
|
||||
$packingList->packages->map(function($package) use($order, $marking, $warehouse, $arrival_date) {
|
||||
$cbm = (($package->width / 100) * ($package->height / 100) * ($package->length / 100)) * $package->quantity;
|
||||
return [
|
||||
$order->reference,
|
||||
@@ -73,7 +72,7 @@ class ExportsArrivedParcel implements WithHeadings, WithHeadingRow, WithMapping,
|
||||
$arrival_date,
|
||||
''
|
||||
];
|
||||
}, $packingList->packages)
|
||||
})
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user