diff --git a/app/Controllers/Opd_prescription.php b/app/Controllers/Opd_prescription.php index 3c4d771..28e4b1e 100644 --- a/app/Controllers/Opd_prescription.php +++ b/app/Controllers/Opd_prescription.php @@ -5207,37 +5207,86 @@ class Opd_prescription extends BaseController ->getResultArray(); if (empty($rows)) { - return $this->response->setBody('
No old prescriptions found.
'); + return $this->response->setBody('No old prescriptions found.
'); } $medicineTable = $this->findExistingTable(['opd_prescrption_prescribed', 'opd_prescription_prescribed']); - $html = 'Old medicine table not found.
'); + } + + $html = '| Prescribed | Dose | + |
|---|---|---|
| ' . esc($medLabel !== '' ? $medLabel : '-') . ' | '; + $html .= '' . esc($doseLabel) . ' | '; + $html .= '' + . '' + . ' | '; + $html .= '