Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Method is used for calculating the payment for the sales invoice. Method performs the following; 1.Creates and posts the payment journal.
2.Marks the Sale Order to be retail sale if it is paid at store.
3.Marks sales order as retail sales.
4.Marks this invoice as retail sales.
Syntax
client server public static container paySalesInvoice(
InvoiceId _invoiceId,
AmountCur _paymentAmount,
RetailTerminalId _terminalId,
RetailStoreId _storeId,
RetailTransactionId _transactionId)
Run On
Called
Parameters
- _invoiceId
Type: InvoiceId Extended Data Type
ID of the CustTrans.Invoice field.
- _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.