RetailOrderManager::CreateEachOrderLine Method [AX 2012]
Create a sales lines from a retail transaction table entry for gift card item the quantity is divded into individual sales line
Syntax
client server private static InventTransId CreateEachOrderLine(
SalesTable salesTable,
RetailTransactionSalesTrans salesTrans,
RetailTransactionTable transactionTable,
RetailNetAmount netAmount,
[boolean isGiftCardItem])
Run On
Called
Parameters
- salesTable
Type: SalesTable Table
Sales order that the sales lines will be added to
- salesTrans
Type: RetailTransactionSalesTrans Table
Sales transaction to lookup for
- transactionTable
Type: RetailTransactionTable Table
Retail transaction table entry that the lines will be created from
- netAmount
Type: RetailNetAmount Extended Data Type
The net amunt set for the giftcard item
- isGiftCardItem
Type: boolean
If the current sales line is a giftcard item
Return Value
Type: InventTransId Extended Data Type
largest InventTransId for the sales lines created
Remarks
Creates entries in SalesLine, MarkupTrans, Tax and RetailSalesLine