Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Construct a SalesTransaction object from the Commerce Runtime from the SalesTable AX table record. Includes any sales lines on the order.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static CLRObject getSalesTransactionFromOrder(
SalesPurchTable _salesTable,
[SalesPurchLine _newSalesLine,
Map _lineIdMap,
RetailSalesPurchLineMap _retailSalesPurchLineMap])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static CLRObject getSalesTransactionFromOrder(SalesTable _salesTable)
Run On
Called
Parameters
- _salesTable
Type: SalesPurchTable Map
The SalesTable record to convert to a Commerce Runtime SalesTransaction object.
- _newSalesLine
Type: SalesPurchLine Map
Optional. Newly created lines won't be found in the database, so we can pass them here if they need to be considered part of the order.
- _lineIdMap
Type: Map Class
- _retailSalesPurchLineMap
Type: RetailSalesPurchLineMap Map
Return Value
Type: CLRObject Class
The new Commerce Runtime SalesTransaction object.