We're updating the issue view to help you get more done. 

Expired prescription can dispensed from if it has already been dispensed in an invoice

Description

If a prescription is dispensed in an invoice, and subsequently expires or is cancelled, it can be dispensed from again in the same invoice.

To reproduce:
1. go to Patients - Medical Records - Prescriptions
2. create and save a new prescription
3. Click Dispense to dispense it
4. Click Cancel Prescription to cancel it
5. go to Customers - Charges, and edit the invoice containing the prescription item
6. add a new item, and enter the same product that was prescribed. A dialog will be displayed of the form:

1 2 3 A prescription exists for Product X. Do you wish to use it?

If the same product is charged in a new invoice, this doesn't occur.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.9
1.9.1

Priority

Minor