R28364 SalesOrder - Check Customers Validity

Code R28364
Entity Crm.Sales.SalesOrders Entity
Name CheckCustomersValidity
Attribute Customer
Layer Back-End
Events Planning +
Modify NO
Action Validate that:

DocumentDate >= Customer.FromDate && DocumentDate <= Customer.ThruDate

||

Customer.FromDate == null && DocumentDate <= Customer.ThruDate

||

DocumentDate >= Customer.FromDate && Customer.ThruDate == null

||

Customer.FromDate == null && Customer.ThruDate == null
Description The customer has his own customer terms and conditions and these conditions are valid for specified period. If the customer's conditions expire the user cannot sell him anymore by the same conditions. There is a need for new conditions. For example a customer is part of specific price list for a season and then we revise his activity and there is a chance to change his terms and conditions. While the has no specified terms and conditions we cannot sell him anything as there is knowledge which prices to use and more.

The validity of the customer's term and conditions are not mandatory and the fields may be null - From Date and/or Thru Date.
Message Customer {Customer.Party.PartyName} has no valid client conditions. The sales order document date is {SalesOrder.DocumentDate} and the customer conditions are valid from ({Customer.FromDate}) thru ({Customer.ThruDate}). Change the document date or update the customer's conditions.
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.