RetailTransactionService::paySalesInvoice Method [AX 2012]

Processes the payment for a sales invoice.

client server public static container paySalesInvoice(
    InvoiceId _invoiceId, 
    AmountCur _paymentAmount, 
    RetailTerminalId _terminalId, 
    RetailStoreId _storeId, 
    RetailTransactionId _transactionId)

Run On



Type: InvoiceId Extended Data Type
The value of the Invoice field.
Type: AmountCur Extended Data Type
The value of the AmountCurDebit field of a LedgerJournalTrans record if the _paymentAmount parameter is less than 0; otherwise, the AmountCurCredit value of the LedgerJournalTrans record.
Type: RetailTerminalId Extended Data Type
The value of the TerminalId field.
Type: RetailStoreId Extended Data Type
The RetailStoreId value.
Type: RetailTransactionId Extended Data Type
The RetailTransactionId value.

Return Value

Type: container
The status as a container.