R27380 DefaultSalesOrderPaymentPlan - Amount Percent Is Less Than Or Equal To 100

Code R27380
Entity Crm.Sales.DefaultSalesOrderPaymentPlans Entity
Name AmountPercentIsLessThanOrEqualTo100
Attribute AmountPercent
Layer Back-End
Events Commit
Modify NO
Action

For of the following groups

  • rows with null EnterpriseCompany;
  • rows with not null EnterpriseCompany and null EnterpriseCompanyLocation and null EnterpriseCompany - a group for each EnterpriseCompany+null EnterpriseCompany;
  • rows with not null EnterpriseCompany and not null EnterpriseCompanyLocation and null EnterpriseCompany - a group for each EnterpriseCompany and EnterpriseCompanyLocation and null EnterpriseCompany;

    Validate that:

    DefaultSalesOrderPaymentPlan.AmountPercent.Sum() <= 100
Description The total percents of the installments must be less than or equal to 100%. If they are less than 100% the payment plan must contain a row with checked Remainder (see R27343 DefaultSalesOrderPaymentPlan - Remainder Is Checked At Most Once), if there is no Remainder checked, the total amount of a payment plan must be exactly 100%. Otherwise, the user would generate payment plan for greater amount than the sales order amount.
Message "The default payment plan for document type '{DocumentType}' doesn't cover 100% of the sales order amount or exceeds 100%. The total sum of the amount percents in the payment plan lines should be less than 100 and a line in the payment plan to be marked as 'remainder' or the total amount to be exactly 100."
Introduced In Version 2017
Revocable NO

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