lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5292] Revert temporary change committed 20090613T1757Z


From: Greg Chicares
Subject: [lmi-commits] [5292] Revert temporary change committed 20090613T1757Z
Date: Sat, 01 Oct 2011 14:29:50 +0000

Revision: 5292
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5292
Author:   chicares
Date:     2011-10-01 14:29:49 +0000 (Sat, 01 Oct 2011)
Log Message:
-----------
Revert temporary change committed 20090613T1757Z

Modified Paths:
--------------
    lmi/trunk/input_harmonization.cpp

Modified: lmi/trunk/input_harmonization.cpp
===================================================================
--- lmi/trunk/input_harmonization.cpp   2011-10-01 14:21:34 UTC (rev 5291)
+++ lmi/trunk/input_harmonization.cpp   2011-10-01 14:29:49 UTC (rev 5292)
@@ -299,25 +299,13 @@
     LastMaterialChangeDate  .enable(non_mec);
     InforceDcv              .enable(non_mec && mce_cvat == 
DefinitionOfLifeInsurance);
     InforceAvBeforeLastMc   .enable(non_mec);
-    InforceContractYear     .enable(non_mec);
-    InforceContractMonth    .enable(non_mec);
     InforceLeastDeathBenefit.enable(non_mec);
 
-    if(contains(global_settings::instance().pyx(), "old_inforce"))
-        {
-        // These fields have no effect for now. They're suppressed to
-        // avoid confusion.
-        InforceAsOfDate.enable(false);
-        LastMaterialChangeDate.enable(false);
-        }
-    else
-        {
-        // These will soon be removed from the GUI:
-        InforceYear         .enable(false);
-        InforceMonth        .enable(false);
-        InforceContractYear .enable(false);
-        InforceContractMonth.enable(false);
-        }
+    // These will soon be removed from the GUI:
+    InforceYear         .enable(false);
+    InforceMonth        .enable(false);
+    InforceContractYear .enable(false);
+    InforceContractMonth.enable(false);
 
 // TODO ?? Nomen est omen.
 if(!egregious_kludge)
@@ -1001,37 +989,19 @@
         DoHarmonize();
         }
 
-    if(contains(global_settings::instance().pyx(), "old_inforce"))
-        {
-        InforceAsOfDate = add_years_and_months
-            (EffectiveDate.value()
-            ,InforceYear  .value()
-            ,InforceMonth .value()
-            ,true
-            );
-        LastMaterialChangeDate = add_years_and_months
-            (EffectiveDate.value()
-            ,InforceYear  .value() - InforceContractYear .value()
-            ,InforceMonth .value() - InforceContractMonth.value()
-            ,true
-            );
-        }
-    else
-        {
-        std::pair<int,int> ym0 = years_and_months_since
-            (EffectiveDate  .value()
-            ,InforceAsOfDate.value()
-            );
-        InforceYear  = ym0.first;
-        InforceMonth = ym0.second;
+    std::pair<int,int> ym0 = years_and_months_since
+        (EffectiveDate  .value()
+        ,InforceAsOfDate.value()
+        );
+    InforceYear  = ym0.first;
+    InforceMonth = ym0.second;
 
-        std::pair<int,int> ym1 = years_and_months_since
-            (LastMaterialChangeDate.value()
-            ,InforceAsOfDate       .value()
-            );
-        InforceContractYear  = ym1.first;
-        InforceContractMonth = ym1.second;
-        }
+    std::pair<int,int> ym1 = years_and_months_since
+        (LastMaterialChangeDate.value()
+        ,InforceAsOfDate       .value()
+        );
+    InforceContractYear  = ym1.first;
+    InforceContractMonth = ym1.second;
 
     // USER !! This is the credited rate as of the database date,
     // regardless of the date of illustration, because the database




reply via email to

[Prev in Thread] Current Thread [Next in Thread]