Skip to content

Latest commit

 

History

History
40 lines (39 loc) · 4.13 KB

R27428.md

File metadata and controls

40 lines (39 loc) · 4.13 KB
erp.type erp.entity
business-rule
General.Products.Products

R27428 Product - Base Measurement Category

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

| | | The BaseMeasurementCategory can be changed when there are no non-voided documents with | | | BaseQuantity using the current product. | +-------------------+--------------------------------------------------------------------------------------------------+ | Description | If a product is part of documents with Quantity Base the base measurement category cannot be | | | changed. The Quantity Base in the documents is calculated by the default measurement unit of the | | | base measurement category of the product. If it is changed these calculations would be | | | incorrect. | +-------------------+--------------------------------------------------------------------------------------------------+ | Message | "Base measurement category for product '{Product.Name}' can't be changed because there are | | | non-voided documents with quantity in base measurement unit. | | |

| | | To change the Base Measurement Unit of the product, there must be no non-voided documents in the | | | database containing Quantity Base of '{Product.Name}'." | +-------------------+--------------------------------------------------------------------------------------------------+ | Introduced In | 2017 | | Version | | +-------------------+--------------------------------------------------------------------------------------------------+