add offers count, & minor fixes code standards

This commit is contained in:
Ludovic CANDELLIER
2021-11-01 16:26:31 +01:00
parent e97f54f126
commit 18f1f8a13a
66 changed files with 526 additions and 574 deletions

View File

@@ -20,7 +20,7 @@ class PriceListsDataTable extends DataTable
{
$model = $model->with(['sale_channel','price_list_values']);
$model = self::filterByTariff($model);
return self::buildQuery($model);
return $this->buildQuery($model);
}
public static function filterByTariff($model, $tariff_id = false)
@@ -49,7 +49,7 @@ class PriceListsDataTable extends DataTable
Column::make('name')->title('Nom'),
Column::make('sale_channel.name')->title('Canal de vente'),
Column::make('tariff_id')->title('Liste de prix'),
self::makeColumnButtons(),
$this->makeColumnButtons(),
];
}
}