2007-05-03 11:34:03 UTC
Problem:
Step (1): For an item Id in the ‘Planned order’ form, find the BOM of the
item Id on the ReqPO line (ReqPO.ItemBOMId). Find each component of that BOM.
Find the available physical on hand inventory of the component using
(InventSum.AvailPhysical() – no issues in this)
Step (2): Repeat the above step for each component in the BOM. However, if
the component is a Phantom type BOM item, repeat above steps again.
I think there must be a function in the standard Axapta that will make a
recursive call to the next BOM level (and then calculate the physical on
hand).
Step (1): For an item Id in the ‘Planned order’ form, find the BOM of the
item Id on the ReqPO line (ReqPO.ItemBOMId). Find each component of that BOM.
Find the available physical on hand inventory of the component using
(InventSum.AvailPhysical() – no issues in this)
Step (2): Repeat the above step for each component in the BOM. However, if
the component is a Phantom type BOM item, repeat above steps again.
I think there must be a function in the standard Axapta that will make a
recursive call to the next BOM level (and then calculate the physical on
hand).
--
Vishal
Vishal