Fixed
Details
Details
Assignee
Unassigned
UnassignedReporter
Hesham Ahmed
Hesham AhmedLabels
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
Production (Single Product) does not add ASI values to the production plan.
To reproduce:
Create a BOM for a product for production
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
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
Create the material receipt based on the PO and notice that iDempiere correctly sets the attribute set instance
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.