mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-09-01 02:44:13 +00:00
temp show specific report period
This commit is contained in:
@@ -33,7 +33,7 @@ class Package extends AbstractModel
|
||||
*/
|
||||
public function order(): hasOneDeep
|
||||
{
|
||||
return $this->hasOneDeep(Order::class, [PackingList::class], ['id', ['owner_type', 'owner_id']], ['packing_list_id', null]);
|
||||
return $this->hasOneDeep(Order::class, [PackingList::class], ['id', 'id'], ['packing_list_id', 'owner_id']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,6 +52,7 @@ class Package extends AbstractModel
|
||||
return $this->hasManyDeep(Schedule::class, [PackingList::class, ContainerPackingList::class, Container::class, Transport::class], ['id', 'packing_list_id', 'id', ['owner_type', 'owner_id'], ['owner_type', 'owner_id']], ['packing_list_id', 'id', 'container_id', null, null]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return HasManyThrough
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user