R28260 SalesOrder - Empty Return For Sales Order When Positive Quantity And Amount

Code R28260
Entity Crm.Sales.SalesOrders Entity
Name EmptyReturnForSalesOrderWhenPositiveQuantityAndAmount
Attribute ReturnForSalesOrder
Layer Back-End
Events Planning +
Modify NO
Action Validate that:

if (SalesOrderLine.Quantity >0 && SalesOrderLine.LineAmount >0)

SalesOrder.ReturnForSalesOrder == 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 Return For SalesOrder in the Sales Order header. If Return For SalesOrder is not null it indicates that the current document 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 'Return For SalesOrder' in the document header is specified. This field is used only if the document is for returning products or services. Clear the value from 'Return For SalesOrder'.

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

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