Generate Orders treats rejected orders as being stock on order

Description

Generate Orders doesn't exclude REJECTED orders when determining if stock is on order.
The getStockToOrderByStockLocationAndSupplier query only excludes orders with CANCELLED status.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure