multiple bug fixes including sender ID filtering
This commit is contained in:
@@ -73,3 +73,81 @@ if(date('D') == 'Sat' || date('D') == 'Sun') {
|
||||
select * from business where districtid = 1 limit 100;
|
||||
select upn, subupn, districtid, owner from business where upn = '653-0738-0134';
|
||||
select * from business_payments where upn = '653-0738-0134';
|
||||
|
||||
|
||||
|
||||
var table = new Tabulator("#senderIdsTableOld", {
|
||||
ajaxURL: "senderids/all",
|
||||
paginationSize: 15,
|
||||
layout: "fitColumns",
|
||||
pagination: "remote",
|
||||
filterMode: "remote",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
ajaxResponse: function(url, params, response) {
|
||||
// Check if the response contains Laravel's 'data' array
|
||||
if (response.data) {
|
||||
return {
|
||||
"data": response.data,
|
||||
"last_page": response.last_page
|
||||
};
|
||||
}
|
||||
return response;
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: "Sender ID",
|
||||
field: "senderid",
|
||||
sorter: "string",
|
||||
headerFilter:"input",
|
||||
formatter: cellDesign,
|
||||
// formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Direct MNO",
|
||||
field: "direct_mno",
|
||||
sorter: "string",
|
||||
headerFilter:"input"
|
||||
},
|
||||
{
|
||||
title: "Network",
|
||||
field: "mno_name",
|
||||
// headerFilter:"input",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Supplier",
|
||||
field: "supplier_name",
|
||||
// headerFilter:"input",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
// headerFilter:"input",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Remarks",
|
||||
field: "remarks",
|
||||
sorter: "string",
|
||||
// headerFilter:"input",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Created By",
|
||||
field: "createdBy",
|
||||
// headerFilter:"input",
|
||||
sorter: "string",
|
||||
},
|
||||
],
|
||||
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
console.log(userID);
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user