R28333 SalesOrder - Exactly One Payment Plan Remainder
Code | R28333 |
Entity | Crm.Sales.SalesOrders Entity |
Name | ExactlyOnePaymentPlanRemainder |
Attribute | SalesOrder.SalesOrderPaymentPlan.Remainder |
Layer | Back-End |
Events | Releasing |
Modify | NO |
Action | If there is at least one SalesOrderPaymentPlan for the particular Sales Order, validate that:
In the Sales Order there is only one 'SalesOrderPaymentPlan.Remainder = True'. |
Description | When creating a Sales Order Payment Plan we have to make sure that the Total Amount of the
document is fully distributed amount it's lines, because the exact amount have to be paid by
the customer.
In order to make the distribution possible and easier we must specify a line whose Amount is a Remainder. If the field is check-marked then the Amount for the particular line is calculated automatically by the system. The remainer amount's value is the TotalAmount of the Sales Order minus the sum of the Amount of the rest of the Payment Plan Lines. There must be only one Payment Plan Line for which the field Remainder is check-marked. |
Message | There are no or more than one lines in the payment plan of sales order
'[Document.DocumentType] [Document.DocumentNo]' that are marked as a 'Remainder'.
Exactly one line must be a remainder.
Sort Messages By Attribute: InstallmentNumber |
Introduced In Version | 2018.1 |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.