From 2e14e494a16dae406ce77161bdab17d50b5a90ed Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Wed, 9 Feb 2022 09:25:48 +0100 Subject: [PATCH] fix search --- app/Datatables/Shop/OffersDataTable.php | 8 ++++---- app/Datatables/Shop/TariffsDataTable.php | 8 ++++---- resources/lang/fr.json | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/Datatables/Shop/OffersDataTable.php b/app/Datatables/Shop/OffersDataTable.php index 148bb308..7c49f64b 100644 --- a/app/Datatables/Shop/OffersDataTable.php +++ b/app/Datatables/Shop/OffersDataTable.php @@ -60,13 +60,13 @@ class OffersDataTable extends DataTable return [ Column::make('status_id')->title('')->width(40), Column::make('article.article_nature.name')->title('Nature'), - Column::make('thumb')->title('')->width(40), + Column::make('thumb')->title('')->width(40)->searchable(false), Column::make('article.name')->title('Article'), Column::make('variation.name')->title('Déclinaison'), Column::make('tariff.name')->title('Tarif'), - Column::make('stock_current')->title('Appro im'), - Column::make('stock_delayed')->title('Appro délai'), - Column::make('stock_ondemand')->title('Dmde'), + Column::make('stock_current')->title('Appro im')->searchable(false), + Column::make('stock_delayed')->title('Appro délai')->searchable(false), + Column::make('stock_ondemand')->title('Dmde')->searchable(false), $this->makeColumnButtons(), ]; } diff --git a/app/Datatables/Shop/TariffsDataTable.php b/app/Datatables/Shop/TariffsDataTable.php index 284c0c0d..ffd32345 100644 --- a/app/Datatables/Shop/TariffsDataTable.php +++ b/app/Datatables/Shop/TariffsDataTable.php @@ -37,13 +37,13 @@ class TariffsDataTable extends DataTable protected function getColumns() { return [ - Column::make('status_id')->data('status')->title('status'), + Column::make('status_id')->data('status')->title('status')->searchable(false)->orderable(false), Column::make('name')->title('Nom'), - Column::make('sale_channels2')->title('Canaux de vente'), + Column::make('sale_channels2')->title('Canaux de vente')->searchable(false)->orderable(false), Column::make('code')->title('Code'), Column::make('ref')->title('Référence'), - Column::make('price_lists_count')->title('#Lst prix'), - Column::make('offers_count')->title('#Offres'), + Column::make('price_lists_count')->title('#Lst prix')->searchable(false)->orderable(false), + Column::make('offers_count')->title('#Offres')->searchable(false)->orderable(false), $this->makeColumnButtons(), ]; } diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 925cf7d9..51cc5b7a 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -56,5 +56,6 @@ "comments": "Notes internes", "comment_add": "Ajout de Note interne", "apply": "Appliquer", - "close": "Fermer" + "close": "Fermer", + "search": "Chercher" } \ No newline at end of file