erp.type | erp.entity |
---|---|
business-rule |
General.Products.Products |
+-------------------+--------------------------------------------------------------------------------------------------+
| Code | R27378 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Entity | @General.Products.Products |
+-------------------+--------------------------------------------------------------------------------------------------+
| Name | CostingCurrency |
+-------------------+--------------------------------------------------------------------------------------------------+
| Attribute | CostingCurrency |
+-------------------+--------------------------------------------------------------------------------------------------+
| Layer | Back-End |
+-------------------+--------------------------------------------------------------------------------------------------+
| Events | Commit |
+-------------------+--------------------------------------------------------------------------------------------------+
| Modify | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | If the costing currency of the product is changed, validate that there are no non-voided Store |
| | Transactions with the current product. |
| |
|
| | If the previous value of costing currency is null then costing currency can be changed to base |
| | currency. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Description | The current validation is required because if the product participates in store transactions |
| | with the old costing currency, then these transactions have calculated costs which use the old |
| | currency and these costs would become incorrect. |
| |
|
| | If the previous value of costing currency is null then costing currency can be changed to the |
| | base currency. In this case, the Enterprise Company of the product cannot be null. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Message | Costing currency for product ' {Product.Name}' can't be changed because there are |
| | transactions with calculated cost for this product that have used the old value for the costing |
| | currency. If there are non voided transaction then only change from empty to base currency is |
| | allowed. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Introduced In | 2018.2 |
| Version | |
+-------------------+--------------------------------------------------------------------------------------------------+
| Revocable | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.