fix export arrival list

This commit is contained in:
omair saleh
2022-05-10 19:31:04 +08:00
parent 4fb284c85c
commit 78ce2084b9
@@ -61,7 +61,10 @@ class ExportsArrivedParcel implements WithHeadings, WithHeadingRow, WithMapping,
{
$packingList = $package->packingList;
$order = $packingList->owner;
dump($order);
if($order instanceof PackingList){
$order = $order->owner;
}
$connection = $order->companyModule()->first()->inviters()->withPivot('invitee_reference')->first();
$marking = $connection ? $connection->pivot->invitee_reference:'';