Transfer order receive item with different than default storage dimensions

InventTransferLine table
.inventDimShip()
.inventDimReceive()

    [PostHandlerFor(tableStr(InventTransferLine), tableMethodStr(InventTransferLine, inventDimReceive))]
    public static void InventTransferLine_Post_inventDimReceive(XppPrePostArgs args)
    {
        InventDim inventDim = args.getReturnValue();
        inventDim.LicensePlateId = "ANNARBO_ANNARBO";
        inventDim = InventDim::findOrCreate(inventDim);

        args.setReturnValue(inventDim);
    }

    /// <summary>
    ///
    /// </summary>
    /// <param name="args"></param>
    [PostHandlerFor(tableStr(InventTransferLine), tableMethodStr(InventTransferLine, inventDimShip))]
    public static void InventTransferLine_Post_inventDimShip(XppPrePostArgs args)
    {
        InventDim inventDim = args.getReturnValue();
        inventDim.LicensePlateId = "ANNARBO_ANNARBO";
        inventDim = InventDim::findOrCreate(inventDim);

        args.setReturnValue(inventDim);
    }


Search

About

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.

Blog Tags