Production (Single Product) does not add BOM ASI

Description

Production (Single Product) does not add ASI values to the production plan.
To reproduce:

  1. Create a BOM for a product for production

  2. Create a Lot Control setting, assign it to an Attribute Set as mandatory lot and assign that Attribute set to one of the Raw materials of the BOM

  3. Create a Purchase Order for that Raw material, iDempiere would correctly ask for the Lot number to be filled. Fill the lot no in the Attribute Set instance and complete the PO

  4. Create the material receipt based on the PO and notice that iDempiere correctly sets the attribute set instance

  5. Now do a production run and create production lines, iDempiere should add the Attribute Set Instance to the Raw material line on the production plan but it doesn't

The issue seems to be the following block in MProduction.java at line 371

The if condition is ALWAYS false since locAttribSet is ALWAYS zero.

Environment

None

Attachments

2

Activity

Show:

Anna Fadeeva July 30, 2020 at 5:55 PM
Edited

Attribute Set Instance added after complete

Anna Fadeeva July 30, 2020 at 5:54 PM

Anna Fadeeva July 30, 2020 at 5:54 PM

Fixed

Details

Assignee

Reporter

Labels

Tested By

Anna Fadeeva

Components

Fix versions

Affects versions

Priority

Created October 24, 2016 at 11:27 PM
Updated July 30, 2020 at 5:57 PM
Resolved July 30, 2020 at 5:57 PM