changing moved quantity in production to lower than production quantity results in error

Description

it is possible to change the movement quantity in a production document to a lower quantity than production quantity. This results in an unrecoverable error because there is no undo/void/etc, and the doc is read only but there is a Posting Error:

(org.adempiere.exceptions.AverageCostingNegativeQtyException: Product=S Button, Current Qty=14.0, New Current Qty=-16.0, CostElement=Average PO, Schema=Systematika Fashion, Ltd UN/35 US Dollar) - .Doc_Production (MMP - DocumentNo=1000006, DateAcct=2013-09-18, Amount=0.0, Sta=E - PeriodOpen=true, Balanced=true, Schema=Systematika Fashion, Ltd UN/35 US Dollar

I understand decreasing movement quantity as a partial production which pushes the first finished products on stock but let me continue the rest of production.(Useful for a longer running production process)

It is also possible to increase the movement quantity which makes no sense to me.

It shoud not be possible to enter non useful values into movement quantity.

(see demo.adempiere.com gardenworld production 1000000 and 1000001)

Environment

None

Attachments

2
  • 09 May 2020, 01:58 PM
  • 09 May 2020, 01:58 PM

Activity

Show:

Andres Lopez Andrade May 9, 2020 at 2:04 PM

Issue tested, cannot reproduce the error in version 7.1z

Andres Lopez Andrade May 9, 2020 at 1:58 PM

triaged by Andres Lopez

Steps

  1. Create a Production (single product) of PatioSet product, Production Quantity = 2 on Furniture Locator

  2. Create Production lines

  3. Change movement quantity = 1

  4. Complete document

  5. Posted

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created September 18, 2013 at 7:14 PM
Updated July 1, 2020 at 7:52 PM
Resolved May 9, 2020 at 2:04 PM