Skip to content

Latest commit

 

History

History
48 lines (46 loc) · 4.96 KB

R28273.md

File metadata and controls

48 lines (46 loc) · 4.96 KB
erp.type erp.entity
business-rule
Crm.Sales.SalesOrders

R28273 SalesOrder - Empty Historical Unit Cost When Positive Quantity And Amount

+----------------------+-----------------------------------------------------------------------------------------------+ | Code | R28273 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @Crm.Sales.SalesOrders | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | EmptyHistoricalUnitCostWhenPositiveQuantityAndAmount | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | Line.HistoricalUnitCost | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Back-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | Planning + | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | NO | +----------------------+-----------------------------------------------------------------------------------------------+ | Action | Validate that: | | |

| | | if (Quantity >0 && LineAmount >0) | | |

| | | HistoricalUnitCost == null | +----------------------+-----------------------------------------------------------------------------------------------+ | Description | According to Sales order row types, | | | if the quantity and the amount are positive, then all returning value fields must be empty. | | | One of these fields is Historical Unit Cost in the lines of the Sales Order. If Historical | | | Unit Cost is not null it indicates that the current row is from return sales type and the | | | positive quantity and amount are contradicting. | +----------------------+-----------------------------------------------------------------------------------------------+ | Message | Line {LineNo} in '{DocumentText}' is considered to be normal sale (because it has positive | | | quantity and amount) but column 'Historical Unit Cost' is specified. This columns is used | | | only in cases of returning products or services. | | | Clear the value from 'Historical Unit Cost' for this line. | | |

| | | Sort Messages By Attribute: LineNo | +----------------------+-----------------------------------------------------------------------------------------------+ | Introduced In | 2018 | | Version | | +----------------------+-----------------------------------------------------------------------------------------------+ | Revocable | NO | +----------------------+-----------------------------------------------------------------------------------------------+

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