[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5581] Prototype a constant COI-reentry date
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5581] Prototype a constant COI-reentry date |
Date: |
Wed, 24 Oct 2012 18:41:41 +0000 |
Revision: 5581
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5581
Author: chicares
Date: 2012-10-24 18:41:41 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
Prototype a constant COI-reentry date
Modified Paths:
--------------
lmi/trunk/input_harmonization.cpp
Modified: lmi/trunk/input_harmonization.cpp
===================================================================
--- lmi/trunk/input_harmonization.cpp 2012-10-24 16:50:30 UTC (rev 5580)
+++ lmi/trunk/input_harmonization.cpp 2012-10-24 18:41:41 UTC (rev 5581)
@@ -383,12 +383,22 @@
);
FlatExtra.enable(database_->Query(DB_AllowFlatExtras));
- calendar_date const most_recent_anniversary = add_years
- (EffectiveDate.value()
- ,InforceYear .value()
- ,true
- );
- LastCoiReentryDate.maximum(most_recent_anniversary);
+ // DATABASE !! This temporary kludge will soon be replaced.
+ double const coimult = database_->Query(DB_CurrCoiMultiplier);
+ if(0.9029 < coimult && coimult < 0.9031 &&
!global_settings::instance().regression_testing())
+ {
+ calendar_date const z(2009, 1, 1);
+ LastCoiReentryDate.minimum_and_maximum(z, z);
+ }
+ else
+ {
+ calendar_date const most_recent_anniversary = add_years
+ (EffectiveDate.value()
+ ,InforceYear .value()
+ ,true
+ );
+ LastCoiReentryDate.maximum(most_recent_anniversary);
+ }
LastCoiReentryDate.enable(e_reenter_upon_rate_reset ==
database_->Query(DB_CoiInforceReentry));
BlendGender.enable(database_->Query(DB_AllowMortBlendSex));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5581] Prototype a constant COI-reentry date,
Greg Chicares <=