This commit is contained in:
Ludovic CANDELLIER
2022-01-23 09:02:43 +01:00
parent f4aecc9130
commit 94a162deb7
3 changed files with 14 additions and 56 deletions

View File

@@ -13,4 +13,14 @@ class SaleChannel extends Model
{
return $this->hasMany(Delivery::class);
}
public function price_lists()
{
return $this->hasMany(PriceList::class);
}
public function tariffs()
{
return $this->hasManyThrough(Tariff::class, PriceList::class, 'id1', 'tariff_id', 'id2', 'id3')
}
}