Bug #689
Updated by Roshni Harish. 11 days ago
On the Counter Sale screen, Witness name and Witness ID are optional fields, called out as relevant only for Schedule X items (“Only required for Schedule X items”). In practice, nurses/pharmacy staff Nurses sometimes dispense give a different medicine than the one the doctor prescribed, when did not prescribe, because the prescribed drug one is out of not in stock. Right now that kind of substitution sale can be completed with no The witness recorded at all, since Witness isn’t tied to “was the dispensed item different from the prescription,” only to Schedule X. Impact Without a mandatory witness, there’s no audit trail for substitutions made at the counter when the originally prescribed item isn’t in stock. That’s exactly the scenario that most needs an accountable name attached to it — a deviation from what the doctor actually ordered. For Rx items in particular (like the Fasigyn 300 example here), this creates compliance and clinical-accountability exposure: if something goes wrong, or an audit asks who authorized the substitution, there’s currently no record tied to the sale. Environment Tenant: Vetri Vivega Medical Center. Module: Pharmacy > on Counter Sale > Complete Sale panel. Example used: CS-20261102-36CA71, BILL-1-01019, customer medha nair, item Fasigyn 300 (Rx), ₹131.00, Paid, 2 Nov 2026. Steps to Reproduce Go to Pharmacy > Counter Sale and open a sale for a walk-in customer. Add a prescription-only (Rx/Schedule H/H1/X) item to the sale (here: Fasigyn 300). Note the Documents section marks prescription upload as optional (“won’t block generating the bill”). Scroll to Complete Sale. Witness name and Witness ID are both empty, with placeholder text indicating they’re “Only required for Schedule X items.” Leave both Witness fields blank and click Complete Sale — the sale completes successfully with no witness captured, regardless of whether the dispensed item actually matches what was prescribed. Expected vs Actual Expected: when the dispensed medicine differs from what was originally prescribed (a substitution), Witness name and ID should be mandatory — not only for Schedule X — since that’s precisely the scenario needing an accountable record (per the reporter: nurses sometimes dispense a different medicine when the prescribed one is out of stock). Actual: Witness fields are optional for everything except Schedule X items. There’s no detection of a prescription substitution and no enforcement tied to it, required, so a every such sale can complete with zero accountability trail for has a deviation from the prescription. Notes Filed as an enhancement rather than a bug: the system is behaving exactly as designed (Witness is only required for Schedule X today), so nothing here is malfunctioning — the ask is to widen when Witness becomes mandatory to also cover prescription substitutions. name against it.