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.
Calculates the open amount for a CustTransOpen open record.
Syntax
client server public static AmountCur calculateOpenInvoiceAmount(
CompanyId _openCompanyId,
RecId _openRecId,
CurrencyCode _currencyCode,
CompanyId _transCompanyId,
TransDate _transDate,
[ExchRate _transExchRate,
PaymMode _paymMode])
Run On
Called
Parameters
- _openCompanyId
Type: CompanyId Extended Data Type
The company of the selected invoice.
- _openRecId
Type: RecId Extended Data Type
The record ID of the selected invoice.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency the open amount will be returned in.
- _transCompanyId
Type: CompanyId Extended Data Type
The company of the LedgerJournalTrans payment record.
- _transDate
Type: TransDate Extended Data Type
The transaction date of the LedgerJournalTrans payment record.
- _transExchRate
Type: ExchRate Extended Data Type
The exchange rate of the LedgerJournalTrans payment record; optional.
- _paymMode
Type: PaymMode Extended Data Type
Return Value
Type: AmountCur Extended Data Type
The open amount of the selected invoice.
Remarks
Calculates the open amount for a CustTransOpen open record adjusted for cash discount and currency exchange.