This commit is contained in:
Pringgosutono
2025-12-04 08:43:03 +07:00
parent b0f51efb0e
commit e5fc309deb

View File

@ -761,7 +761,8 @@
orderable: true, orderable: true,
searchable: true, searchable: true,
render: function(data, type, row, meta) { render: function(data, type, row, meta) {
return moment.unix(data).format('DD MMM YYYY'); // return moment.unix(data).format('DD MMM YYYY');
return data ? moment.unix(data).format('DD MMM YYYY') : '-';
}, },
}, },
@if ($user_role != \App\Models\Users::ROLE_VENDOR) @if ($user_role != \App\Models\Users::ROLE_VENDOR)
@ -772,7 +773,7 @@
orderable: true, orderable: true,
searchable: true, searchable: true,
render: function(data, type, row, meta) { render: function(data, type, row, meta) {
return Helper.splitEvery4Char(data); return data ? Helper.splitEvery4Char(data) : '-';
// return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`); // return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`);
}, },
}, },
@ -783,7 +784,7 @@
orderable: true, orderable: true,
searchable: true, searchable: true,
render: function(data, type, row, meta) { render: function(data, type, row, meta) {
return Helper.splitEvery4Char(data); return data ? Helper.splitEvery4Char(data) : '-';
// return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`); // return `<span class="d-none">${data}</span>` + Helper.splitEvery4Char(`${data}`);
}, },
}, },