RetailTransactionServiceOrders::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, 
    Qty _quantity, 
    boolean _fromQuote)

Run On

Called

Parameters

_xmlDoc
Type: XmlDocument Class
Parent XML document.
_xmlItem
Type: XmlElement Class
Parent XML node the Discount Line XML will be added to.
_inventTrans
Type: InventTransId Extended Data Type
InventTransId of the sales line.
_quantity
Type: Qty Extended Data Type
Quantity of the sales line.
_fromQuote
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.

Show: