Fixes on adding price & errors
This commit is contained in:
@@ -26,4 +26,19 @@ class PriceList extends Model
|
||||
{
|
||||
return $this->hasMany('App\Models\Shop\PriceListValue');
|
||||
}
|
||||
|
||||
public function scopeByTariff($query, $id)
|
||||
{
|
||||
return $query->where('tariff_id', $id);
|
||||
}
|
||||
|
||||
public function scopeBySaleChannel($query, $id)
|
||||
{
|
||||
return $query->where('sale_channel_id', $id);
|
||||
}
|
||||
|
||||
public function scopeByStatus($query, $id)
|
||||
{
|
||||
return $query->where('status_id', $id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user