R28897 SalesOrderLine - Parent Sales Order Line Of Return For Invoice Line Equals Return For Sales Order Line

Code R28897
Entity Crm.Sales.SalesOrderLines Entity
Name ParentSalesOrderLineOfReturnForInvoiceLineEqualsReturnForSalesOrderLine
Attribute ReturnForSalesOrderLine
Layer Back-End
Events Commit
Priority Normal
Modify NO
Action If (ReturnForSalesOrderLine != null && ReturnForInvoiceLine != null)

ReturnForSalesOrderLine = ReturnForInvoiceLine.ParentSalesOrderLine
Description The sales order line invoiced by the invoice line from ReturnForInvoiceLine must be the same as the sales order line specified in the same line in ReturnForSalesOrderLine.
Message In line {LineNo} both attributes ReturnForSalesOrderLine and ReturnForSalesOrderLine are specified but the ReturnForSalesOrderLine - '{ReturnForSalesOrderLine}', is not the sales order line invoiced by the ReturnForInvoiceLine - '{ReturnForInvoiceLine.ParentSalesOrderLine}'.

When the invoice line and the sales order line to which the goods are returned are specified, they must point to one and the same original Sales Order Line.

Please change the ReturnForSalesOrderLine attribute.
Introduced In Version 2018.2
Revocable YES

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