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

Error when copying lines from a closed order with lost sales qty

Description

The Ordered Qty will be wrong if you copy lines from a previously closed order with lost sales qty. How to replicate in test.idempiere.org:

1) Create an order #1 with one line and quantity 2
2) Make a shipment of 1 qty
3) Close the order #1, now you have this:
QtyEntered=2
QtyOrdered=1
QtyLostSales=1

4) Create a new order #2
5) Copy lines from order #1, apparently it's OK, but when you complete order #2 you'll see:
QtyEntered=2
QtyOrdered=1
QtyLostSales=1

Environment

None

Status

Assignee

Ricardo Santana

Reporter

Ricardo Santana

Labels

None

Tested By

None

Priority

Major