R28259 SalesOrder - Empty Return For Invoice When Positive Quantity And Amount
Code | R28259 |
Entity | Crm.Sales.SalesOrders Entity |
Name | EmptyReturnForInvoiceWhenPositiveQuantityAndAmount |
Attribute | ReturnForInvoice |
Layer | Back-End |
Events | Planning + |
Modify | NO |
Action | Validate that:
if (SalesOrderLine.Quantity >0 && SalesOrderLine.LineAmount >0) SalesOrder.ReturnForInvoice == 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 Invoice in the Sales Order header. If Return For Invoice 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 Invoice' 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 Invoice'.
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.