RetailTransactionService::addDiscountLineXml Method [AX 2012]
Adds Sales Discount Line XML for the given SalesLine InventTransId
Syntax
client server private static void addDiscountLineXml(
XmlDocument _xmlDoc,
XmlElement _xmlItem,
InventTransId _inventTrans,
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.
- _fromQuote
Type: boolean
True if the discount lines are from a Quote, False if they are from a Sales Order.
Remarks
Gets XML representing the associated SalesDiscountLines for the given SalesLine and adds them to the given Item xml node.