Probable issue in MProduction class

31 views
Skip to first unread message

Kubavat Hardik

unread,
Jun 4, 2018, 3:15:28 AM6/4/18
to iDempiere
Hello community,

I am going through the class of MProduction. There is one variable defined as asi on line no 258. which is never assigned and it is used to create the object of attributesetinstance on line no 358. Which I see it has no use. 

Can anyone please confirm that it is a code issue or is there any impact if I am changing it? I have created attributesetinstace obejct using variable slASI, which gives me the expected result.

Thanks

Kubavat Hardik

unread,
Jun 4, 2018, 9:34:07 AM6/4/18
to iDempiere
Hello community,

Please see the below scenario and request you all to validate my understanding.

  1. Create one BOM Product : 
    • Parent Product
      • Child Product - BOM Qty : 5
  2. Create Material Receipt of child product with 2 lot 100 and 101(Document No : 10000519) with qty of 10 each
  3. I have created Production record with 3 Qty Parent Product (Document No : 1000000). Which required 15 qty of child product.
Expected Output.

When I run process Crate Lines, it should create 3 lines.
  1. Line with end Product
  2. Line with Child Product from Lot 100
  3. Line with Child Product from Lot 101
Actual Output(I have reproduce this on https://test.idempiere.org/webui)

  1. Line with end product
  2. Line with child product without attributeset instance and lot information.
I assuming above thing based on the code lines I have mentioned in my earlier post.
Reply all
Reply to author
Forward
0 new messages