RetailTransactionServiceTransactions::postInvoicePayment Method [AX 2012]
Method creates the journal entries in LedgerJournalTable and LedgerJournalTrans for the invoice payment.
Syntax
client server private static container postInvoicePayment(
AmountCur _paymentAmount,
CustAccount _custAccount,
InvoiceId _invoiceId,
RetailTerminalId _terminalId,
RetailStoreId _storeId,
RetailTransactionId _transactionId)
Run On
Called
Parameters
- _paymentAmount
Type: AmountCur Extended Data Type
Amount stored in LedgerJournalTrans.AmountCurDebit if _paymentAmount is less than 0; else LedgerJournalTrans.AmountCurCredit.
- _custAccount
Type: CustAccount Extended Data Type
ID of the customer account.
- _invoiceId
Type: InvoiceId Extended Data Type
ID of the LedgerJournalTrans.MarkedInvoice field.
- _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
Container with the status as true if the creation of record is successful; else false and appropriate string message.