diff --git a/app/Views/billing/opd_appointment_list.php b/app/Views/billing/opd_appointment_list.php index f475b10..1f60d83 100644 --- a/app/Views/billing/opd_appointment_list.php +++ b/app/Views/billing/opd_appointment_list.php @@ -91,6 +91,10 @@ $mergedGroups = [ $isConfirmedForQueue= (int) ($row->is_confirmed_for_queue ?? 0) === 1; $queueNo = (int) (($row->display_queue_no ?? 0) ?: ($row->queue_no ?? 0)); $hasQueueNo = $queueNo > 0; + $queueDisplay = trim((string) ($row->opd_no ?? '')); + if ($queueDisplay === '' && $hasQueueNo) { + $queueDisplay = (string) $queueNo; + } $showFullActions = $hasPrescription || $isConfirmedForQueue; $opdId = (int) ($row->opd_id ?? 0); $patientRawName = trim((string) ($row->P_name ?? '') . ' { ' . (string) ($row->p_rname ?? '') . ' }'); @@ -112,7 +116,7 @@ $mergedGroups = [ opd_code ?? '') ?> - + p_code ?? '') ?> opd_type ?? '') ?> / Amt: opd_fee_amount ?? '') ?>