Show formulation with medicine name in OPD medicine list

This commit is contained in:
DevSoftTech Server 2026-04-13 12:28:01 +05:30
parent 93fe7741fa
commit 779dbcbaa1

View File

@ -508,8 +508,13 @@
},
{
data: 'item_name',
render: function(data) {
return esc(data);
render: function(data, type, row) {
var name = String(data || '').trim();
var formulation = String((row && row.formulation) ? row.formulation : '').trim();
if (!name) {
return '';
}
return formulation ? (esc(name) + ' (' + esc(formulation) + ')') : esc(name);
}
},
{