Order Line QtyReserved not updated correctly for negative shipment

Description

Test Case 1:

  1. Create and Complete a Standard Order with Qty=1

  2. Generate Shipment for Order with Document Action=Prepared

  3. Edit Shipment, change quantity to 2 and complete the shipment

  4. Check order line's qty delivered and qty reserved is 2 and 0

  5. Using customer shipment window, create another shipment for the order. Enter Qty=-1

  6. Complete the shipment

  7. Check order line qty delivered and qty reserved is 1 and 0

Test Case 2:

  1. Create a Standard Order with Qty=-1

  2. Generate shipment for order with Document Action=Complete

  3. Check order line's qty delivered and qty reserved is -1 and 0

Environment

None

Assignee

Heng Sin Low

Reporter

Heng Sin Low

Labels

None

Tested By

None

Components

Fix versions

Priority

Major
Configure