mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-31 10:24:25 +00:00
fix unclaimed packing lists
This commit is contained in:
@@ -26,8 +26,8 @@ class PackingListResource extends JsonResource
|
||||
'status' => $this->status,
|
||||
'transport' => new TransportResource($this->transports()->first()),
|
||||
'type' => $this->type,
|
||||
'packages' => PackageResource::collection($packages),
|
||||
$this->mergeWhen($this->owner instanceof Order, [
|
||||
'packages' => PackageResource::collection($packages),
|
||||
'order' => New OrderResource($this->owner)
|
||||
])
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user