Gilles Bourgeat
diff --git a/Controller/Admin/BordereauController.php b/Controller/Admin/BordereauController.php
index e9690e2..db8a1b7 100644
--- a/Controller/Admin/BordereauController.php
+++ b/Controller/Admin/BordereauController.php
@@ -193,4 +193,19 @@ public function deleteBordereauAction(Request $request): Response
return $this->listBordereauAction();
}
+
+ /**
+ * @throws Exception
+ */
+ #[Route('/bordereau/delete-multiple', name: 'delete-multiple', methods: 'POST')]
+ public function deletePackingSlipsAction(Request $request): Response
+ {
+ $filePaths = $request->get('filePaths');
+ $fs = new Filesystem();
+ foreach ($filePaths as $filePath){
+ $fs->remove($filePath);
+ }
+ return $this->listBordereauAction();
+ }
+
}
diff --git a/I18n/backOffice/default/en_US.php b/I18n/backOffice/default/en_US.php
index 673822c..da27065 100644
--- a/I18n/backOffice/default/en_US.php
+++ b/I18n/backOffice/default/en_US.php
@@ -17,6 +17,7 @@
'Date' => 'Date',
'Delete' => 'Delete',
'Delete bordereau' => 'Delete bordereau',
+ 'Delete packing slips selected' => 'Delete packing slips selected',
'Destination' => 'Destination',
'Do not change' => 'Do not change',
'Do you want to clear label and tracking number for this order ?' => 'Do you want to clear label and tracking number for this order ?',
diff --git a/I18n/backOffice/default/fr_FR.php b/I18n/backOffice/default/fr_FR.php
index bfd3875..33bdfdd 100644
--- a/I18n/backOffice/default/fr_FR.php
+++ b/I18n/backOffice/default/fr_FR.php
@@ -18,6 +18,7 @@
'Date' => 'Date',
'Delete' => 'Supprimer',
'Delete bordereau' => 'Supprimer le bordereau',
+ 'Delete packing slips selected' => 'Supprimer les bordereaux selectionnés',
'Destination' => 'Destination',
'Do not change' => 'Ne pas modifier',
'Do you want to clear label and tracking number for this order ?' => 'Voulez-vous supprimer cette étiquette et le n° de suivi ?',
diff --git a/templates/backOffice/default/colissimo-label/bordereau-list.html b/templates/backOffice/default/colissimo-label/bordereau-list.html
index 4c5c8e7..f225d0b 100644
--- a/templates/backOffice/default/colissimo-label/bordereau-list.html
+++ b/templates/backOffice/default/colissimo-label/bordereau-list.html
@@ -42,22 +42,29 @@
-
+
{if $bordereaux}
+
+
- {/if}
+ {/if}
+
{/block}
{block name="javascript-last-call"}
-{/block}
\ No newline at end of file
+{/block}
\ No newline at end of file