R27824 Document - Prime Cause Document

Code R27824
Entity General.Documents.Documents Entity
Name PrimeCauseDocument
Attribute PrimeCauseDocument
Layer Back-End
Events Commit
Modify NO
Action Validate that:

If (Document.PrimeCauseDocument != null)

PrimeCauseDocument.Void = False
Description If the PrimeCauseDocument field is not null, then on commit the system validates that the document, specified in this field is not a voided document. This field specifies the document which is the prime cause for creation of the current document and it is not allow to be voided.
Message Document '{DocumentText}' can't be saved because its prime cause document '{PrimeCauseDocument.DocumentText}' is void.
Introduced In Version 2018
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.