Skip to content

Latest commit

 

History

History
44 lines (42 loc) · 4.45 KB

R27397.md

File metadata and controls

44 lines (42 loc) · 4.45 KB
erp.type erp.entity
business-rule
General.Products.Products

R27397 Product - Guarantee Period Days

+-------------------+--------------------------------------------------------------------------------------------------+ | Code | R27397 | +-------------------+--------------------------------------------------------------------------------------------------+ | Entity | @General.Products.Products | +-------------------+--------------------------------------------------------------------------------------------------+ | Name | GuaranteePeriodDays | +-------------------+--------------------------------------------------------------------------------------------------+ | Attribute | GuaranteePeriodDays | +-------------------+--------------------------------------------------------------------------------------------------+ | Layer | Back-End | +-------------------+--------------------------------------------------------------------------------------------------+ | Events | Commit | +-------------------+--------------------------------------------------------------------------------------------------+ | Modify | NO | +-------------------+--------------------------------------------------------------------------------------------------+ | Action | Validate that: | | |

| | | If (Product.ProductType.IsServiced = false) | | |

| | | Product.GuaranteePeriodDays = null | +-------------------+--------------------------------------------------------------------------------------------------+ | Description | The "GuaranteePeriodDays" is used when the product is serviced. This is why the field must | | | have value only if the product is serviced. If the product is serviced is specified in the | | | product's type definition by the "IsServiced" field. The field's value manages the Service | | | documents and if it has value when it is not supposed to, this may lead to incorrect document | | | flows. | +-------------------+--------------------------------------------------------------------------------------------------+ | Message | "The field 'Guarantee Period Days' cannot be set for this product because its type is not | | | serviced." | +-------------------+--------------------------------------------------------------------------------------------------+ | Introduced In | 2017 | | Version | | +-------------------+--------------------------------------------------------------------------------------------------+ | Revocable | NO | +-------------------+--------------------------------------------------------------------------------------------------+

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