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

Prescriptions dispensed from Patients - Medical Records - Prescriptions invoice incorrectly when discounts used

Description

To reproduce:
1. create a 50% discount type
2. create a product with Fixed Price=3, and Unit Price=0.10, and assign it the discount
3. assign the patient the discount
4. create a prescription for the product, with Quantity=10
5. create and invoice in Customers - Charges and charge the product, clicking on Yes when the 'Use Prescription?' prompt is displayed
6. verify that the invoice line item has:

  • Quantity = 10

  • Fixed Price = 3

  • Unit Price = 0.10

  • Discount = 2.0

  • Tax = 0.0 (assuming no tax for this test)

  • Total = 2.0

7. Go to Patients - Medical Records - Prescriptions and click Dispense on the prescription
8. Check the invoice. This has incorrect values i.e.:

  • Discount = 1.55

  • Total = 2.45

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.9

Priority

Major