Fixes for deliveries vs sale_channels
This commit is contained in:
@@ -18,7 +18,7 @@ class PriceListsDataTable extends DataTable
|
||||
|
||||
public function query(PriceList $model)
|
||||
{
|
||||
$model = $model->with(['sale_channel','price_list_values']);
|
||||
$model = $model->with(['sale_channel', 'price_list_values']);
|
||||
$model = self::filterByTariff($model);
|
||||
return $this->buildQuery($model);
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class PriceListsDataTable extends DataTable
|
||||
->editColumn('tariff_id', function (PriceList $price_list) {
|
||||
return view('Admin.Shop.PriceLists.partials.table-prices', ['prices' => $price_list['price_list_values']]);
|
||||
})
|
||||
->rawColumns(['tariff_id','action']);
|
||||
->rawColumns(['tariff_id', 'action']);
|
||||
return parent::modifier($datatables);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user