From 779dbcbaa125173f9a8b685791b83fe1b8a479b1 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Mon, 13 Apr 2026 12:28:01 +0530 Subject: [PATCH] Show formulation with medicine name in OPD medicine list --- app/Views/billing/opd_medicince_workspace.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Views/billing/opd_medicince_workspace.php b/app/Views/billing/opd_medicince_workspace.php index dfa61f5..de87df0 100644 --- a/app/Views/billing/opd_medicince_workspace.php +++ b/app/Views/billing/opd_medicince_workspace.php @@ -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); } }, {