Customer orders invoiced when the quantity is zero

Description

When Pharmacy dispense messages are received, a corresponding Customer Order is created, linked to the original Invoice Item.
If the Invoice is Finalised, invoicing the Customer Order creates a new Invoice, with the quantity set to difference between original order and that dispensed.
If the ordered quantity is the same as that dispensed, this results in Invoices with zero quantities.
In this case, the Customer Order should be automatically Finalised, and no Invoice created.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Affects versions

1.8

Priority

Minor
Configure