RetailTransactionService::addDiscountLineXml Method [AX 2012]

Adds Sales Discount Line XML for the given SalesLine InventTransId

client server private static void addDiscountLineXml(
    XmlDocument _xmlDoc, 
    XmlElement _xmlItem, 
    InventTransId _inventTrans, 
    boolean _fromQuote)

Run On



Type: XmlDocument Class
Parent XML document.
Type: XmlElement Class
Parent XML node the Discount Line XML will be added to.
Type: InventTransId Extended Data Type
InventTransId of the sales line.
Type: boolean
True if the discount lines are from a Quote, False if they are from a Sales Order.

Gets XML representing the associated SalesDiscountLines for the given SalesLine and adds them to the given Item xml node.