In the Lines module, you can use the Rate Object Evaluation to create a custom Evaluation error message:
- In the BriteCore menu, select Lines.
- On the Lines - Effective Dates screen, select the applicable effective date.
- On the Effective Date - Policy Types screen, complete the following steps:
- In the Select State or Province dropdown, select a state or province.
- Navigate to the applicable Policy Type, and then select Edit.
- On the Policy Type - Details screen, navigate to the applicable Line Item, and then select Edit.
- On the Edit Line Item screen, select Rating.
- In the Chain Details section, navigate to and select Evaluation.
- In the Python Code to Evaluate box, add an error message with a custom message (see Figure 1).
- At the bottom of the page, select Save, and then select Exit.
error("A driver on this policy is less than 21 years old. Please contact an underwriter if further assistance is needed.")
if
age_from_date(this.driver.date_of_birth) < 21
else
0
Figure 1: Evaluation error message.