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

  • _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.
  • _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.

See Also

Reference

GeneralJournalEntry Table