From 2265da1f8927af5806c1382b84efd68d7a464a83 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Tue, 17 Dec 2024 10:43:05 +0530 Subject: [PATCH] merge code : GWM --- app/Views/accountsDashboard.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/Views/accountsDashboard.php b/app/Views/accountsDashboard.php index 06813377..68baa677 100644 --- a/app/Views/accountsDashboard.php +++ b/app/Views/accountsDashboard.php @@ -1688,7 +1688,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: [