fixes
This commit is contained in:
@@ -21,6 +21,12 @@ class Tariff extends Model
|
||||
return $this->belongsTo(SaleChannel::class);
|
||||
}
|
||||
|
||||
public function sale_channels()
|
||||
{
|
||||
// return $this->HasManyThrough(SaleChannel::class, PriceList::class);
|
||||
return $this->HasManyThrough(SaleChannel::class, PriceList::class, 'id', 'id', 'id', 'sale_channel_id');
|
||||
}
|
||||
|
||||
public function tariff_unity()
|
||||
{
|
||||
return $this->belongsTo(TariffUnity::class);
|
||||
|
||||
Reference in New Issue
Block a user