R27477 ProductType - At Most One Default Type

Code R27477
Entity General.Products.ProductTypes Entity
Name AtMostOneDefaultType
Attribute IsDefault
Layer Back-End
Events Commit
Modify NO
Action Validate that:

There is only one 'ProductType' with 'ProductType.IsDefault = True'.
Description

When creating a new Product the Product type could be set manually. But it if the field is still empty while choosing the Product group, the field will automatically be filled in if:

  • in the Product group's definition is set a 'Default Product Type';

    or

  • there is a Product Type in which definition the field 'Is Default' is checked.



    This means that if the field 'Is Default' in the Product Type's definition is checked, this specifies that this type is set by default for new products unless another type is specified in the product groups. In order to make sure that the right Product Type is going to be automatically selected in new products, we validate that there is only one Product Type in which's definition 'Is Default' is checked.
Message Тhere is more than one product type in which definition the field 'Is Default' is checked.

Please, choose only one default product type.
Introduced In Version 2017
Revocable NO

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