RetailTransactionServiceTransactions::postInvoicePayment Method [AX 2012]
Method creates the journal entries in LedgerJournalTable and LedgerJournalTrans for the invoice payment.
client server private static container postInvoicePayment(
AmountCur _paymentAmount,
CustAccount _custAccount,
InvoiceId _invoiceId,
RetailTerminalId _terminalId,
RetailStoreId _storeId,
RetailTransactionId _transactionId)
Run On
CalledParameters
- _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: containerContainer with the status as true if the creation of record is successful; else false and appropriate string message.
Show: