Project

General

Profile

Actions

Bug #689

closed
MN RH

Counter Sale Witness Should Be Required for Prescription Substitutions

Bug #689: Counter Sale Witness Should Be Required for Prescription Substitutions

Added by Medha N. 13 days ago. Updated 3 days ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
10/30/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

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 sometimes dispense a different medicine than the one the doctor prescribed, when the prescribed drug is out of stock. Right now that kind of substitution sale can be completed with no 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 > 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, so a sale can complete with zero accountability trail for 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.

RH Updated by Roshni Harish. 11 days ago Actions #1

  • Subject changed from Counter Sale: make the witness field mandatory to Counter Sale Witness Should Be Required for Prescription Substitutions
  • Description updated (diff)
  • Assignee set to Fiza M.

RH Updated by Roshni Harish. 10 days ago Actions #2

  • Assignee changed from Fiza M. to Alminta V.

AV Updated by Alminta V. 7 days ago Actions #3

  • Status changed from New to Resolved
  • Assignee changed from Alminta V. to Roshni Harish.
  • Resolved By set to Alminta V.

RH Updated by Roshni Harish. 3 days ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom