Monday, 28 September 2020

Get Batch Reserve Quantity with Item Id Unit Conversion

Below code will return batch reserve quantity with item id unit conversion, if you do not need unit conversion simply use without conversion method.

/// <summary>

    /// Get reserve physical Quantity

    /// </summary>

    /// <param name = "_salesLine">Sales line</param>

    /// <returns>Reserve physical Qty</returns>

    public InventQtyReservPhysical getReservedPhysicalQty(SalesLine  _salesLine)


        InventQtyReservPhysical inventQtyReservPhysical;




            InventTable inventTable = InventTable::find(_salesLine.ItemId);

            inventQtyReservPhysical = decRound(UnitOfMeasureConverter::convert(_salesLine.reservedPhysical(),





            NoYes::No), 0);


        return inventQtyReservPhysical;


No comments:

Post a Comment

Set up Online VM for Dynamics 365 Finance and Operation for Technical and Functional Learning Purposes

In this blog, I will discuss how we set up an online VM for D365F&O for Technical and Functional learning purposes for free. Step: 1 Cl...