From 635627ea960a37c35ad68e22183b4dc891cbb8ff Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Tue, 17 Dec 2024 10:14:13 +0530 Subject: [PATCH] Export related change : GWM --- app/Views/viewinwardgateregister.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/Views/viewinwardgateregister.php b/app/Views/viewinwardgateregister.php index cc07b33f..a24ea360 100755 --- a/app/Views/viewinwardgateregister.php +++ b/app/Views/viewinwardgateregister.php @@ -1713,7 +1713,20 @@ table = $('#view_inward_gate_register').DataTable({ dom: 'Blfrtip', buttons: [ - 'excel', 'pdf' + { + extend: 'excel', + text: 'Excel', + exportOptions: { + columns: ':not(:last-child)' // Exclude the last column + } + }, + { + extend: 'pdf', + text: 'PDF', + exportOptions: { + columns: ':not(:last-child)' // Exclude the last column + } + } ], pageLength: 10, lengthMenu: [