Hi all,
I'm getting an error Item number: RM-0002 Decimal rounding of the physical updating quantity in the unit In is incorrect.
How to clear this error?
Thanks in advance.
Check number of decimals on that UOM. Try adjusting it based on your requirement.
I changed it but i'm still getting that error..
How is the picking list created? Manually or by using code?
Try debugging and see why the rounding creates a problem in your case, \Classes\InventUpd_Physical\checkUpdQty
I created through webservice and stored it in a temp table and populated those records to main table.
i did a mistake in conversion of inventconsump and inventproposal
pjb.InventConsump = UnitConvert::qty(pjbtmp.bomConsump, pjbtmp.UnitId, InventTable::find(pjbtmp.ItemId).inventUnitId(), pjbtmp.ItemId); pjb.InventProposal =UnitConvert::qty(pjbtmp.BOMProposal, pjbtmp.UnitId, InventTable::find(pjbtmp.ItemId).inventUnitId(), pjbtmp.ItemId);//pjbtmp.BOMProposal;
I think this code made error, how could i convert this value?
How to convert bomproposal value to inventproposal value?
The BOM UOM is not necessarily the invent UOM and therefore AX does a conversion on the line to ensure the correct amount is picked from inventory.
How the conversion is happening in Pickinglist journal lines from for Inventconsump and Inventproposal values?
Have a look at \Classes\ProdJournalFormTransBOM\fieldModifiedBomConsumpPost
Yes i looked at it and its converting only bomconsump value, how to convert inventproposal value ?
Why cannot you use the similar approach?
pjb.InventProposal =UnitConvert::qty(pjbtmp.BOMProposal, pjbtmp.UnitId, InventTable::find(pjbtmp.ItemId).inventUnitId(), pjbtmp.ItemId);//pjbtmp.BOMProposal;
Like this, Kranthi?
When i remove this code I'm not getting Decimal rounding error
When i assign bomconsump and bomproposal value to inventproposal and inventconsump value unit conversion will not happen, so how could i clear this?
If your proposal and actual are same, then you can directly assign the actual value to proposal
pjb.InventProposal = pjb.InventConsump;
Try creating a similar journal line manually and see how these fields are updated.
if(Pjbtmp.BOMConsump==pjbtmp.BOMProposal) { pjb.InventConsump = UnitConvert::qty(pjbtmp.bomConsump, pjbtmp.UnitId, InventTable::find(pjbtmp.ItemId).inventUnitId(), pjbtmp.ItemId); pjb.InventProposal = pjb.InventConsump; } else { pjb.InventConsump = pjbtmp.BOMConsump; pjb.InventProposal = pjbtmp.BOMProposal; }
I done like this, kranthi.
But when i try to post still decimal rounding error is showing