RetailTransactionServiceAX61::paySalesOrder Method [AX 2012]

Method is used for payment of sales order. Method performs the following: 1.Creates and posts payment journal.

2.Return error if the total prepayment exceed the sales order total.

3.Marks Sale Order to be retail sale if it is paid at store.

4.Marks sales order as retail sales.

5.Marks newly created invoice as retail sales.

client server public static container paySalesOrder(
    SalesId _salesId, 
    AmountCur _paymentAmount, 
    RetailTerminalId _terminalId, 
    RetailStoreId _storeId, 
    RetailTransactionId _transactionId)

Run On

Called

Parameters

_salesId
Type: SalesId Extended Data Type
ID of the SalesTable.SalesId firld.
_paymentAmount
Type: AmountCur Extended Data Type
Amount stored in LedgerJournalTrans.AmountCurDebit if _paymentAmount is less than 0; else LedgerJournalTrans.AmountCurCredit.
_terminalId
Type: RetailTerminalId Extended Data Type
ID of the RetailTerminalTable.TerminalId field.
_storeId
Type: RetailStoreId Extended Data Type
RetailStoreId
_transactionId
Type: RetailTransactionId Extended Data Type
RetailTransactionId

Return Value

Type: container
The status as a container.
Show: