Add support for premium overrides
You can change how PolicyCenter handles premiums for a policy line to support overriding the premium that the rating engine calculates.
Procedure
- Check if there is an existing cost.
- If so, check if there are non-null values for any override properties.
- If there are overrides, copy the appropriate properties from the existing cost.
- Find and use override properties in your rate table lookups and algorithms.
-
Optionally, disallow user overrides
for a cost by setting the
Overridableproperty on a new cost data object tofalse. The default value ofOverridableistrue. -
Decide how you want to handle zero-cost costs. A real-world rating engine calculates that there is zero
cost ($0) for a particular cost in some cases. Typically, the rating engine does not generate a cost row for
that zero cost. Because the premium overrides user interface allows you to override existing rows but not add
new
Costrows, by default, you cannot override a zero-cost cost. To allow users to edit (override) this cost, you can choose to create a zero-cost Cost entity instance in these cases. If you want to do this, you must modify the quote screen to filter out all the zero-cost rows. To edit those rows, you must show these zero-cost costs in the premium override screen.
