From 02d90f4a80e3e24a69911b317340d14241fca6d1 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Thu, 20 Nov 2025 17:20:51 +0530 Subject: [PATCH] FIX_ADD_BUTTON --- app/Views/commission_file_upload.php | 3 ++- app/Views/payout_list.php | 23 +++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Views/commission_file_upload.php b/app/Views/commission_file_upload.php index b2041356..71ecd86f 100644 --- a/app/Views/commission_file_upload.php +++ b/app/Views/commission_file_upload.php @@ -376,7 +376,8 @@ "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", - buttons: [{ + buttons: [ + { text: 'Upload ', className: 'btn app-btn-primary mr-2', // custom class action: function(e, dt, node, config) { diff --git a/app/Views/payout_list.php b/app/Views/payout_list.php index ff2a36f2..5f789fb2 100644 --- a/app/Views/payout_list.php +++ b/app/Views/payout_list.php @@ -182,18 +182,6 @@
-
-
- -
-
-
- -
-
@@ -269,6 +257,13 @@ "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector buttons: [ + { + text: 'Add', + className: 'btn app-btn-primary mr-2', // custom class + action: function(e, dt, node, config) { + addInvoiceButton(); + } + }, { extend: 'collection', text: ' Export ', @@ -361,4 +356,8 @@ }); } + function addInvoiceButton(){ + window.location.href='' + } + \ No newline at end of file