update 1
This commit is contained in:
@ -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}`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user