OrderGenerator tries to generate orders with negative quantities if there is a fractional on hand quantity and Ideal Qty < Critical Qty

Description

To reproduce:
1. create a product-supplier relationship with:

  • Preferred = true

  • Package Size = 1

2. create a product-stock location relationship with:

  • Quantity = 5.1

  • Ideal Quantity = 8

  • Critical Quantity = 15

3. create an order for the product, with Quantity = 3
4. Click Generate Orders and generate orders for stock below ideal levels. An error dialog will be displayed: Failed to validate Quantity of Order Item: Quantity must be > 0

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Fix versions

Affects versions

1.8

Priority

Minor