Show formulation with medicine name in OPD medicine list
This commit is contained in:
parent
93fe7741fa
commit
779dbcbaa1
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user