Generate Orders generates multiple order items if a product and supplier has 2 or more preferred relationships

Description

If a product has 2 or more preferred relationships to the one supplier, Generate Orders will create an order item for each relationship.
Ideally, both the product and supplier editors would prevent multiple preferred relationships.
As a workaround, the relationship with the lowest id should be chosen to ensure consistency.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure