GeneralJournalEntry::validateReferenceNumber Method
Indicates whether a subledger voucher and an accounting date are valid.
Syntax
client server public static boolean validateReferenceNumber(
RecId _fiscalCalendarRecId,
ReuseVoucher _reuseVoucher,
Voucher _subledgerVoucher,
TransDate _accountingDate,
[CompanyId _subledgerVoucherDataAreaId,
boolean _checkSubledgerJournalForCustomer,
boolean _checkSubledgerJournalForVendor,
boolean _isSubledgerJournalExpectedToExist,
SourceDocumentHeaderRecId _sourceDocumentHeaderRecId,
boolean _skipDuplicateVoucherCheck])
Run On
Called
Parameters
- _fiscalCalendarRecId
Type: RecId Extended Data Type
The foreign key to the fiscal calendar.
- _reuseVoucher
Type: ReuseVoucher Enumeration
An enumeration value that determines whether a user can reuse a voucher.
- _subledgerVoucher
Type: Voucher Extended Data Type
The subledger voucher to validate.
- _accountingDate
Type: TransDate Extended Data Type
The accounting date to validate.
- _subledgerVoucherDataAreaId
Type: CompanyId Extended Data Type
The data area ID of the subledger voucher.
- _checkSubledgerJournalForCustomer
Type: boolean
Indicates whether to check the customer subledger journal for an allowed duplicate; optional.
- _checkSubledgerJournalForVendor
Type: boolean
Indicates whether to check the vendor subledger journal for an allowed duplicate; optional.
- _isSubledgerJournalExpectedToExist
Type: boolean
Indicates whether to check whether the subledger journal exists; optional.
- _sourceDocumentHeaderRecId
Type: SourceDocumentHeaderRecId Extended Data Type
The record ID of the source document header that is associated with the voucher; optional.
- _skipDuplicateVoucherCheck
Type: boolean
Indicates whether a check for duplicate vouchers will be performed; optional.
Return Value
Type: boolean
true if the subledger voucher and the accounting date are valid; otherwise, false.
Remarks
A valid subledger voucher and accounting date are available for ledger posting. Checking the subledger journal assumes that there is exactly one additional subledger voucher.