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

Activity

Show:
Ricardo Alexsander Santana
August 7, 2019, 7:16 PM

Fix is attached

Heng Sin Low
August 19, 2019, 9:59 AM

This break copy lines from Completed Order. Shouldn't set qty order to zero.

Carlos Ruiz
August 19, 2019, 10:07 AM

Thanks , I missed that in the review, fixed now.

Fixed

Assignee

Ricardo Alexsander Santana

Reporter

Ricardo Alexsander Santana

Labels

None

Tested By

None

Priority

Major
Configure