if (updateMarking) { InventDim inventDim = InventDim::find(currInventTransferLine.inventDimId); InventDimParm inventDimParm; inventDimParm.initFromInventDim(inventDim); InventTransOriginId receiptInventTransOriginId = InventTransOrigin::findByInventTransId(currInventTransferLine.InventTransId).RecId; InventTransOriginId issueInventTransOriginId = InventTransOrigin::findByInventTransId(currPurchLine.InventTransId).RecId; qty markedQty = InventTransOrigin::updateMarking( receiptInventTransOriginId, issueInventTransOriginId, -currInventTransferLine.QtyTransfer, '', SortOrder::Ascending, false, inventDim, inventDimParm); if (markedQty) { markedQty = InventTransOrigin::updateMarking( issueInventTransOriginId, receiptInventTransOriginId, currInventTransferLine.QtyTransfer, '', SortOrder::Ascending, false, inventDim, inventDimParm); } }
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Monday, January 23, 2023
D365FO: Update inventory marking
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment