Add new data in getBasket context
This commit is contained in:
@@ -174,7 +174,7 @@ class Offer extends Model
|
||||
public function scopeWithPriceListValuesBySaleChannel($query, $sale_channel_id)
|
||||
{
|
||||
return $query->with([
|
||||
'price_lists.price_list_values' => function($query) use ($sale_channel_id) {
|
||||
'price_list_values' => function($query) use ($sale_channel_id) {
|
||||
$query->bySaleChannel($sale_channel_id);
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -22,7 +22,7 @@ class PriceListValue extends Model
|
||||
|
||||
public function tariff()
|
||||
{
|
||||
return $this->belongsToThrough('App\Models\Shop\Tariff', 'App\Models\Shop\PriceList', null, '',
|
||||
return $this->belongsToThrough(Tariff::class, PriceList::class, null, '',
|
||||
[
|
||||
'App\Models\Shop\Tariff' => 'tariff_id',
|
||||
'App\Models\Shop\PriceList' => 'price_list_id',
|
||||
|
||||
Reference in New Issue
Block a user