Try to fix price_lists by sale_channel

This commit is contained in:
Ludovic CANDELLIER
2022-03-30 00:36:58 +02:00
parent ff18a0f5bf
commit c4bb4fdd59
8 changed files with 54 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ class Tariff extends Model
->orWhere($this->table . '.code', 'LIKE', "${str}%");
}
public function scopeBySaleChanel($query, $id)
public function scopeBySaleChanelDefault($query, $id)
{
return $query->where($this->table . '.sale_channel_id', $id);
}