R27977 Document - Adjustment Document Number

Code R27977
Entity General.Documents.Documents Entity
Name AdjustmentDocumentNumber
Attribute DocumentNo
Layer Back-End
Events Commit
Modify NO
Action Validate that:

If (AdjustedDocument != null)

DocumentNo == AdjustedDocument.DocumentNo
Description The AdjustedDocument field has value only when the current document is an adjustment of other document. When this is true - the current document and the adjusted document must have the same document numbers.
Message "Document '{DocumentText}' has invalid number. Because it's adjusting another document it must have the same document number as the adjusted document."
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.