BankPaymCancelLedgerAcctType::findGenJourAcctEntryToCancel Method [AX 2012]
Finds the general journal transaction to offset, based on the voucher, date, posting type, amount, and currency.
Syntax
client server protected static RecId findGenJourAcctEntryToCancel(
Voucher _voucherToCancel,
TransDate _transDateToCancel,
DataAreaId _voucherDataAreaId,
LedgerPostingType _postingType,
[PaymReference _paymReferenceToCancel,
AmountCur _amountToCancel,
CurrencyCode _currencyCode])
Run On
Called
Parameters
- _voucherToCancel
Type: Voucher Extended Data Type
The voucher that is being canceled.
- _transDateToCancel
Type: TransDate Extended Data Type
The date of the voucher that is being canceled.
- _voucherDataAreaId
Type: DataAreaId Extended Data Type
The data area of the voucher that is being canceled.
- _postingType
Type: LedgerPostingType Enumeration
The posting type to restrict on.
- _paymReferenceToCancel
Type: PaymReference Extended Data Type
The payment reference of the voucher that is being canceled; optional.
- _amountToCancel
Type: AmountCur Extended Data Type
The amount of the voucher that is being canceled; optional.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency code of the voucher that is being canceled; optional.
Return Value
Type: RecId Extended Data Type
The record ID of the GeneralJournalAccountEntry record for the bank fee.