mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
update replica packages logic and over weight price announcement
This commit is contained in:
@@ -63,7 +63,7 @@ class PackingList extends AbstractModel implements Transportable, Steppable, Pac
|
||||
*/
|
||||
public function replicatedPackages(): HasManyDeep
|
||||
{
|
||||
return $this->hasManyDeep(Package::class, [PackingList::class.' as replica', PackingList::class], [['owner_type', 'owner_id'], ['owner_type', 'owner_id'], 'packing_list_id'], [null, null, 'id']);
|
||||
// return $this->hasManyDeep(Package::class, [PackingList::class.' as replica', PackingList::class], [['owner_type', 'owner_id'], ['owner_type', 'owner_id'], 'packing_list_id'], [null, null, 'id']);
|
||||
return $this->hasManyDeepFromRelations($this->packingLists(), (new PackingList)->setAlias('replica')->packages());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user