Commit 13919db0 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

For endowments, sumInsured shall be constant over the whole contract, even...

For endowments, sumInsured shall be constant over the whole contract, even though the death benefit might be only a fraction of the sumInsured

The actual death benefit ist stored in a time series cf$death, so cf$sumInsured shall represent the real, contractual sumInsured over the whole contract period.
parent ae034a78
......@@ -527,7 +527,7 @@ InsuranceTarif = R6Class(
}
if (self$tariffType == "endowment" || self$tariffType == "wholelife" || self$tariffType == "endowment + dread-disease") {
cf$death = c(rep(0, deferralPeriod), deathCF, 0)
cf$sumInsured = c(rep(0, deferralPeriod), deathCF, 1);
# cf$sumInsured = c(rep(0, deferralPeriod), deathCF, 1);
}
if (self$tariffType == "endowment + dread-disease") {
cf$disease = c(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment