From 61b679813ac273f2d29031763e0bf6e56d4b525e Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Tue, 29 Oct 2024 14:37:38 +0530 Subject: [PATCH 1/2] IRG live issue and all table change : GWM --- app/Views/AmendPOlist.php | 10 ++++---- app/Views/POlist.php | 10 ++++---- app/Views/assetListing.php | 18 +++++++------- app/Views/configlisting.php | 14 +++++------ app/Views/costListing.php | 14 +++++------ app/Views/createPOfromRequistion.php | 16 ++++++------- app/Views/departmentListing.php | 16 ++++++------- app/Views/employeeListing.php | 12 +++++----- app/Views/expense_list.php | 9 ++++--- app/Views/factoryMachineMasterDetails.php | 14 +++++------ app/Views/inwardgateregister.php | 4 +++- app/Views/rawmaterialListing.php | 18 +++++++------- app/Views/supplierListing.php | 12 +++++----- app/Views/transporterListing.php | 16 ++++++------- app/Views/userListing.php | 29 +++++++---------------- app/Views/viewinwardgateregister.php | 4 ++-- 16 files changed, 98 insertions(+), 118 deletions(-) diff --git a/app/Views/AmendPOlist.php b/app/Views/AmendPOlist.php index 3b7ddfe9..2ce24762 100755 --- a/app/Views/AmendPOlist.php +++ b/app/Views/AmendPOlist.php @@ -213,16 +213,16 @@ }); // Initialize the DataTable var table = $('#amend_po_list').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' // Export buttons + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table + ], + responsive: false, order:false, language: { diff --git a/app/Views/POlist.php b/app/Views/POlist.php index 2002a31a..8fd16db7 100755 --- a/app/Views/POlist.php +++ b/app/Views/POlist.php @@ -265,16 +265,16 @@ // Initialize the DataTable var table = $('#po_list').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf', // Export buttons + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table + ], + responsive: false, ordering: false, language: { paginate: { diff --git a/app/Views/assetListing.php b/app/Views/assetListing.php index 67164f33..0733986d 100755 --- a/app/Views/assetListing.php +++ b/app/Views/assetListing.php @@ -73,7 +73,7 @@
-
+
@@ -105,7 +105,7 @@ $cdate = date('d-m-Y', strtotime($record->CreatedDt)); } ?> - @@ -144,17 +144,17 @@ $(document).ready(function() { // Initialize the DataTable var table = $('#asset_list_table').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon @@ -168,8 +168,6 @@ function(settings, data, dataIndex) { var fromDate = $('#fromDate').val(); var toDate = $('#toDate').val(); - console.log(fromDate); // e.g., 01-09-2024 - console.log(toDate); // e.g., 08-09-2024 if (!fromDate || !toDate) { return true; // If no dates selected, don't filter diff --git a/app/Views/configlisting.php b/app/Views/configlisting.php index a8d1f1ed..01a8faac 100755 --- a/app/Views/configlisting.php +++ b/app/Views/configlisting.php @@ -116,7 +116,7 @@
-
+
AssetCode, 5) ?> + AssetCode, 5) ?> AssetName ?> Description ?> DepartmentName ?>
@@ -186,17 +186,17 @@ // Initialize the DataTable var table = $('#config_list_table').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon diff --git a/app/Views/costListing.php b/app/Views/costListing.php index 3c7f04eb..d730245a 100755 --- a/app/Views/costListing.php +++ b/app/Views/costListing.php @@ -73,7 +73,7 @@
-
+
@@ -221,17 +221,17 @@ // Initialize the DataTable var table = $('#cost_listing').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon diff --git a/app/Views/createPOfromRequistion.php b/app/Views/createPOfromRequistion.php index e62202bb..605272b7 100755 --- a/app/Views/createPOfromRequistion.php +++ b/app/Views/createPOfromRequistion.php @@ -303,7 +303,7 @@
-
+
@@ -401,19 +401,17 @@ }); var table = $('#create_po_from_requistion').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: false, // Responsive table - order: [ - // [0, 'desc'] - ], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, scrollX: true, language: { paginate: { diff --git a/app/Views/departmentListing.php b/app/Views/departmentListing.php index 2141dc5d..8d14e2ca 100755 --- a/app/Views/departmentListing.php +++ b/app/Views/departmentListing.php @@ -102,7 +102,7 @@
-
+
@@ -127,7 +127,7 @@ $cdate = date('d-m-Y', strtotime($record->CreatedDt)); } ?> - +
DEPCode; ?>DEPCode; ?> DepartmentName ?> HeadDept ?> IsActive == 1) { @@ -164,17 +164,17 @@ // Initialize the DataTable var table = $('#department_list_table').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon diff --git a/app/Views/employeeListing.php b/app/Views/employeeListing.php index 10cd0b72..31f4e452 100755 --- a/app/Views/employeeListing.php +++ b/app/Views/employeeListing.php @@ -107,7 +107,7 @@
-
+
@@ -131,7 +131,7 @@ } else { $cdate = date('d-m-Y', strtotime($record->Created_date)); } ?> - + @@ -165,13 +165,13 @@ // Initialize the DataTable var table = $('#datatable').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options - // responsive: true, // Responsive table + responsive: false, order: false, language: { paginate: { diff --git a/app/Views/expense_list.php b/app/Views/expense_list.php index 11a66525..df060602 100755 --- a/app/Views/expense_list.php +++ b/app/Views/expense_list.php @@ -103,12 +103,11 @@
-
+
EmpID ?> EmpID ?> FirstName; ?> ContactNumber ?> Designation ?>
- @@ -471,15 +470,15 @@ var table = $('#expense_list_table').DataTable({ dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], - // responsive: true, - order: [], + responsive: false, + order: false, language: { paginate: { next: '', diff --git a/app/Views/factoryMachineMasterDetails.php b/app/Views/factoryMachineMasterDetails.php index 9c50c7b4..9bf3a053 100644 --- a/app/Views/factoryMachineMasterDetails.php +++ b/app/Views/factoryMachineMasterDetails.php @@ -108,7 +108,7 @@
-
+
Created Date Supplier Name Item Description Cost
@@ -182,14 +182,14 @@ // Initialize the DataTable var table = $('#datatable').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page - lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options - // responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + pageLength: 10, + lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon diff --git a/app/Views/inwardgateregister.php b/app/Views/inwardgateregister.php index 6ffe06e5..501339db 100755 --- a/app/Views/inwardgateregister.php +++ b/app/Views/inwardgateregister.php @@ -397,6 +397,7 @@ } function validate() { + var rowcount = $("#txtRowCount").val(); var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2); var formatted_IsOpenOrder = (isOpenOrder === 0 || isNaN(isOpenOrder)) ? 0 : 1; @@ -406,11 +407,12 @@ var InvoiceQty = parseFloat($('#QuantityAsPerInvoice' + k).val() == '' ? '0.00' : $('#QuantityAsPerInvoice' + k).val()); var RecQty = parseFloat($('#txtReceivedQuantity' + k).val() == '' ? '0.00' : $('#txtReceivedQuantity' + k).val()); var OrderedQty = parseFloat($('#Quantity_1' + k).text()); + if (InvoiceQty != '0.00') { if (OrderedQty < (InvoiceQty + RecQty)) { isExceed = 1; - return false; + // return false; } Noval = 1; } diff --git a/app/Views/rawmaterialListing.php b/app/Views/rawmaterialListing.php index b19e28f7..316ccab6 100755 --- a/app/Views/rawmaterialListing.php +++ b/app/Views/rawmaterialListing.php @@ -66,7 +66,7 @@ ?>
-
+
@@ -79,7 +79,7 @@
-
+
@@ -112,9 +112,9 @@ stock != null || '') { ?> - + - + @@ -144,17 +144,17 @@ $(document).ready(function() { // Initialize the DataTable var table = $('#raw_material_list_table').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + responsive: false, // Responsive table + order: false, // Default ordering (column index 0, descending) language: { paginate: { next: '', // Next button icon @@ -168,8 +168,6 @@ function(settings, data, dataIndex) { var fromDate = $('#fromDate').val(); var toDate = $('#toDate').val(); - console.log(fromDate); // e.g., 01-09-2024 - console.log(toDate); // e.g., 08-09-2024 if (!fromDate || !toDate) { return true; // If no dates selected, don't filter diff --git a/app/Views/supplierListing.php b/app/Views/supplierListing.php index 9c30ad41..aacd2f5c 100755 --- a/app/Views/supplierListing.php +++ b/app/Views/supplierListing.php @@ -80,7 +80,7 @@
-
+
MaterialType ?> UOM ?> stock ?>stock ?> 00 Category ?> HSNCODE ?>
@@ -110,13 +110,13 @@ @@ -182,15 +182,15 @@ var table = $('#datatable').DataTable({ dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], pageLength: 10, // Default rows per page lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + responsive: false, // Responsive table + order: false, language: { paginate: { next: '', // Next button icon diff --git a/app/Views/transporterListing.php b/app/Views/transporterListing.php index 4b89cbe1..eef6e4c1 100755 --- a/app/Views/transporterListing.php +++ b/app/Views/transporterListing.php @@ -111,7 +111,7 @@
-
+
- + SupplierID ?> - + SupplierName ?> Address ?>
@@ -250,17 +250,17 @@ $(document).ready(function() { // Initialize the DataTable var table = $('#transporter_list').DataTable({ - dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination + dom: 'Blfrtip', buttons: [ - 'csv', 'excel', 'pdf' + 'excel', 'pdf' ], - pageLength: 10, // Default rows per page + pageLength: 10, lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] - ], // Rows per page options - responsive: true, // Responsive table - order: [], // Default ordering (column index 0, descending) + ], + responsive: false, + order: false, language: { paginate: { next: '', // Next button icon @@ -274,8 +274,6 @@ function(settings, data, dataIndex) { var fromDate = $('#fromDate').val(); var toDate = $('#toDate').val(); - console.log(fromDate); // e.g., 01-09-2024 - console.log(toDate); // e.g., 08-09-2024 if (!fromDate || !toDate) { return true; // If no dates selected, don't filter diff --git a/app/Views/userListing.php b/app/Views/userListing.php index 1c20aeca..b9458b38 100755 --- a/app/Views/userListing.php +++ b/app/Views/userListing.php @@ -89,7 +89,7 @@
-
+
@@ -148,18 +148,7 @@