temp show specific report period

This commit is contained in:
omair saleh
2021-10-11 14:56:40 +08:00
parent 90a0c4ddf5
commit fdce49ea82
+2 -1
View File
@@ -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
*/