RetailTransactionServiceTransactions::fillSalesLineDiscountTrans Method [AX 2012]
Method returns the serialized xml string of a DiscountLine having the data of the RetailTransactionDiscountTrans table.
Syntax
client server private static XmlElement fillSalesLineDiscountTrans(
RetailTransactionDiscountTrans _discountTrans,
RetailPeriodicDiscount _retailDiscount,
SalesOrderedQty _salesQty,
XmlDocument xmlDoc)
Run On
Called
Parameters
- _discountTrans
Type: RetailTransactionDiscountTrans Table
Table buffer of RetailTransactionDiscountTrans table.
- _retailDiscount
Type: RetailPeriodicDiscount Table
Table buffer of RetailPeriodicDiscount table.
- _salesQty
Type: SalesOrderedQty Extended Data Type
The sales quantity
- xmlDoc
Type: XmlDocument Class
XmlDocument
Return Value
Type: XmlElement Class
XML serialized string of the RetailTransactionDiscountTrans table.
* Members must be in order of the DiscountLine DataContract Example: