R28215 SalesOrder - Quantity And Line Amount Are With The Same Sign
Code | R28215 |
Entity | Crm.Sales.SalesOrders Entity |
Name | QuantityAndLineAmountAreWithTheSameSign |
Attribute | Line.Quantity |
Layer | Back-End |
Events | Planning + |
Modify | NO |
Action | Validate that:
(Quantity >= 0 && LineAmount >= 0) OR (Quantity =< 0 && LineAmount =< 0) OR (Quantity != 0 && LineAmount == 0) OR (Quantity == 0 && LineAmount != 0) |
Description | One row cannot have different signs as Quantity and as LineAmount. These values define the row type (see Sales order row types. Having different signs in the Quantity and the LineAmount would lead to generating double set of Store Orders and Invoice Orders for the current row. |
Message | The quantity and the line amount specified in line {LineNo} in '{DocumentText}' have
opposite signs. These signs are used to determine whether the line is normal sale or is
return sale.
Edit quantity or the amounts so that they have the same signs.
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.