Standard conversion RefRecId unitOfMeasureFromRecId = UnitOfMeasure::findBySymbol(inventTable.salesUnitId()).RecId; RefRecId unitOfMeasureToRecId = UnitOfMeasure::findBySymbol(salesLine.SalesUnit).RecId; real defaultUnitConvertedQty = UnitOfMeasureConverter::convert(abs(inventTrans.Qty), unitOfMeasureFromRecId,//from unitOfMeasureToRecId,//To NoYes::No); Intra-class conversion real unitConvertedQty = EcoResProductUnitConverter::convertGivenUnitSymbolsForReleasedProduct(inventTable.ItemId, salesLine.InventDimId, abs(inventTrans.Qty), inventTable.salesUnitId(),//from salesLine.SalesUnit,//To NoYes::No);
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Wednesday, April 22, 2020
Unit conversions using X++ , Standard and Intra-class conversions in AX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment