lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [4998] Fix defect introduced 20050114T1947Z


From: Greg Chicares
Subject: [lmi-commits] [4998] Fix defect introduced 20050114T1947Z
Date: Mon, 21 Jun 2010 15:46:37 +0000

Revision: 4998
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4998
Author:   chicares
Date:     2010-06-21 15:46:37 +0000 (Mon, 21 Jun 2010)
Log Message:
-----------
Fix defect introduced 20050114T1947Z

Modified Paths:
--------------
    lmi/trunk/ihs_acctval.cpp
    lmi/trunk/yare_input.cpp
    lmi/trunk/yare_input.hpp

Modified: lmi/trunk/ihs_acctval.cpp
===================================================================
--- lmi/trunk/ihs_acctval.cpp   2010-06-21 14:28:34 UTC (rev 4997)
+++ lmi/trunk/ihs_acctval.cpp   2010-06-21 15:46:37 UTC (rev 4998)
@@ -533,8 +533,11 @@
             ,length_7702a
             ,std::back_inserter(pmts_7702a)
             );
-        // Specamt history starts at policy year zero.
-        int const offset = yare_input_.InforceContractYear; // Incorrect.
+        // Specamt history starts at policy year zero and must be offset.
+        int const offset = duration_ceiling
+            (yare_input_.EffectiveDate
+            ,yare_input_.LastMaterialChangeDate
+            );
         nonstd::copy_n
             (yare_input_.SpecamtHistory.begin() + offset
             ,length_7702a

Modified: lmi/trunk/yare_input.cpp
===================================================================
--- lmi/trunk/yare_input.cpp    2010-06-21 14:28:34 UTC (rev 4997)
+++ lmi/trunk/yare_input.cpp    2010-06-21 15:46:37 UTC (rev 4998)
@@ -156,6 +156,7 @@
     SpouseIssueAge                  = z.SpouseIssueAge                 
.value();
     InforceTaxBasis                 = z.InforceTaxBasis                
.value();
     InforceIsMec                    = z.InforceIsMec                   
.value();
+    LastMaterialChangeDate          = z.LastMaterialChangeDate         
.value();
     InforceDcv                      = z.InforceDcv                     
.value();
     InforceAvBeforeLastMc           = z.InforceAvBeforeLastMc          
.value();
     InforceContractYear             = z.InforceContractYear            
.value();

Modified: lmi/trunk/yare_input.hpp
===================================================================
--- lmi/trunk/yare_input.hpp    2010-06-21 14:28:34 UTC (rev 4997)
+++ lmi/trunk/yare_input.hpp    2010-06-21 15:46:37 UTC (rev 4998)
@@ -186,7 +186,7 @@
 //    double                            InforceGsp                      ;
 //    double                            InforceSevenPayPremium          ;
     bool                              InforceIsMec                    ;
-//    calendar_date                     LastMaterialChangeDate          ;
+    calendar_date                     LastMaterialChangeDate          ;
     double                            InforceDcv                      ;
     double                            InforceAvBeforeLastMc           ;
     int                               InforceContractYear             ;




reply via email to

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