SourceDocumentHeader::isSourceDocumentHeaderRelatedToVoucher Method
Checks whether a voucher or voucher data area ID combination is related to a source document header.
Syntax
client server public static boolean isSourceDocumentHeaderRelatedToVoucher(
SourceDocumentHeaderRecId _sourceDocumentHeaderRecId,
Voucher _subledgerVoucher,
CompanyId _subledgerVoucherDataAreaId)
Run On
Called
Parameters
- _sourceDocumentHeaderRecId
Type: SourceDocumentHeaderRecId Extended Data Type
The record ID of the source document header to check.
- _subledgerVoucher
Type: Voucher Extended Data Type
The voucher to check.
- _subledgerVoucherDataAreaId
Type: CompanyId Extended Data Type
The data area ID that is associated with the voucher to check.
Return Value
Type: boolean
true if source document header is related to voucher; otherwise, false.