R28869 DocumentTypeAmount - Only One Input Attribute May Have Default Value

Code R28869
Entity General.DocumentTypeAmounts Entity
Name OnlyOneInputAttributeMayHaveDefaultValue
Attribute -
Layer Back-End
Events Commit
Priority Normal
Modify NO
Action Validate that:

If (DefaultPercent != null)

DefaultInputUnitAmount == null && DefaultInputAmount == null

else if (DefaultInputUnitAmount != null)

DefaultInputAmount == null
Description The DefaultPercent, DefaultInputUnitAmount and DefaultInputAmount attributes contain values to be loaded when a new document of the document type is created. As a document amount is expected to implicitly define its value, it could only have value for one of the InputAmount, InputPercent or InputUnitAmount attributes.

So only one default value is expected when a document type is tuned.
Message Only one of the DefaultPercent, DefaultInputUnitAmount and DefaultInputAmount attributes may have value.

Please, specify only one of them.
Introduced In Version
Revocable NO

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