Coverage currency in policy periods
Policy periods have a preferred coverage currency
which PolicyCenter initializes when initializing the policy term. The
preferred coverage currency on policy periods is in the PolicyPeriod.PreferredCoverageCurrency
property. In the base configuration, this property is set to the account’s
preferred coverage currency property, Account.PreferredCoverageCurrency,
if it exists. This is implemented in the initializeCurrencies method in
the PolicyPeriodPlugin
class in the gw.plugin.policyperiod.impl
package.
In the base configuration, all accounts have a preferred coverage currency even if PolicyCenter is configured for a single currency. However, if an account does not have this value, PolicyCenter sets the policy period’s preferred coverage currency to the default system currency. A properly configured system always specifies the currency and does not rely on this fail-safe behavior.
To get the default preferred coverage
currency for the specified policy period, you can use the lookupDefaultPreferredCoverageCurrency
method in the gw.job.PCPolicyCurrencyUtil
Gosu class.
