RetailTransactionServiceTransactions::postOrderPayment Method [AX 2012]

Method creates the journal entries in LedgerJournalTable and LedgerJournalTrans for the order payment.

client server private static container postOrderPayment(
    AmountCur _paymentAmount, 
    SalesTable _salesTable, 
    RetailTerminalId _terminalId, 
    RetailStoreId _storeId, 
    RetailTransactionId _transactionId)

Run On



Type: AmountCur Extended Data Type
Amount stored in LedgerJournalTrans.AmountCurDebit if _paymentAmount is less than 0; else LedgerJournalTrans.AmountCurCredit.
Type: SalesTable Table
Table buffer of SalesTable.
Type: RetailTerminalId Extended Data Type
ID of the RetailTerminalTable.TerminalId field.
Type: RetailStoreId Extended Data Type
Type: RetailTransactionId Extended Data Type

Return Value

Type: container
Container with the status as true if the creation of record is successful; else false and appropriate string message.