Add filter by sale_channel, add method to get prices by offer, sale_channel and quantity
This commit is contained in:
@@ -21,6 +21,6 @@ class SaleChannel extends Model
|
||||
|
||||
public function tariffs()
|
||||
{
|
||||
return $this->hasManyThrough(Tariff::class, PriceList::class, 'id1', 'tariff_id', 'id2', 'id3')
|
||||
return $this->hasManyThrough(Tariff::class, PriceList::class, 'sale_channel_id', 'id', 'id', 'tariff_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user