public static void VKPostDefaultWMSLocation(XppPrePostArgs _args) { InventTransferLine InventTransferLine = _args.getThis(); InventDim inventDim = _args.getArg('_inventDim'); InventLocationId inventLocationId = inventDim.InventLocationId; InventLocation inventLocation; if (inventLocationId != _args.getArg('_inventLocationId')) { inventLocationId = _args.getArg('_inventLocationId'); } if (InventTransferLine.VKPOSUpdated && inventLocationId) { inventLocation = InventLocation::find(inventLocationId); if (NoYes::Yes == inventLocation.WHSEnabled && inventLocation.RBODefaultWMSLocationId) { _args.setReturnValue(WMSLocation::find(inventLocation.RBODefaultWMSLocationId, inventDim.InventLocationId)); } } }
DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.
Authors are allowed to set their own AdSense units.
Join us.