Generate Shipments is not adjusting QtyEntered

Description

Standard order, with force delivery, and a product with negative stock and non-default uom, the QtyEntered field on generated shipment has a value of field QtyOrdered.

To reproduce:

  • set Physical inventory for product Elm -100 (or any negative value)

  • new Standard Order, with force delivery rule (Warehouse Order works fine)

  • new line, but select non-default uom, like a 6-pack

  • user generate shipment (manual) or process

  • shipment has wrong QtyEntered

Many thanks,
Alan

Environment

None

Activity

Show:
Alan Lescano
July 2, 2014, 11:42 AM

This should solve the issue

Heng Sin Low
July 2, 2014, 5:46 PM

I believe the issue is due to the use of non-default uom and have nothing to do with whether the product is having positive or negative on hand quantity.

Alan Lescano
July 2, 2014, 6:05 PM

Actually, the code that adjust QtyEntered is skiped by a "if (storage.getQtyOnHand().signum() < 0) continue;" near line 465 of InOutGenerate.java

Assignee

Heng Sin Low

Reporter

Alan Lescano

Labels

None

Tested By

None

Fix versions

Priority

Major
Configure