R29081 SalesOrder - Return For Sales Order Line Or Historical Unit Cost Is Obligatory On Return
Code | R29081 |
Entity | Crm.Sales.SalesOrders Entity |
Name | ReturnForSalesOrderLineOrHistoricalUnitCostIsObligatoryOnReturn |
Attribute | Line.ReturnForSalesOrderLine |
Layer | Back-End |
Events | Planning + |
Priority | Normal |
Modify | NO |
Action | for every line validate that:
if ((Quantity < 0 || LineAmount < 0) && Product.ProductType.IsStocked == True) HistoricalUnitCost ! = null OR ReturnForSalesOrderLine ! = null |
Description | If Sales Order line is for return then one of the fields HistoricalUnitCost or ReturnForSalesOrderLine have to have а value. |
Message | Line {LineNo} in '{DocumentText}' is considered to return products (because it has negative
quantity or amount) but columns 'Return For Sales Order Line' or 'Historical Unit Cost'
don't have value. 'Return For Sales Order Line' and 'Historical Unit Cost' are used to
determine the cost at which the products are returned. They can not be both empty in this
case.
Please fill in 'Return For Sales Order Line' or 'Historical Unit Cost'. |
Introduced In Version | 2018.2 |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.