This commit is contained in:
Ludovic CANDELLIER
2021-11-04 16:37:42 +01:00
parent f5716c6530
commit c76996db86
12 changed files with 59 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ class OffersDataTable extends DataTable
public function query(Offer $model)
{
$model = $model->with(['article.article_nature', 'variation', 'tariff']);
$model = $model->with(['article.article_nature', 'variation', 'tariff'])->select($model->getTable() . '.*');
$model = self::filterByArticleNature($model);
$model = self::filterByPackage($model);
return $this->buildQuery($model);