lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [5324] Respect 'TgtPremFixedAtIssue' in GetModalTgtPrem()


From: Greg Chicares
Subject: [lmi-commits] [5324] Respect 'TgtPremFixedAtIssue' in GetModalTgtPrem()
Date: Sat, 03 Dec 2011 19:18:25 +0000

Revision: 5324
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5324
Author:   chicares
Date:     2011-12-03 19:18:25 +0000 (Sat, 03 Dec 2011)
Log Message:
-----------
Respect 'TgtPremFixedAtIssue' in GetModalTgtPrem()

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

Modified: lmi/trunk/ihs_basicval.cpp
===================================================================
--- lmi/trunk/ihs_basicval.cpp  2011-12-03 17:46:18 UTC (rev 5323)
+++ lmi/trunk/ihs_basicval.cpp  2011-12-03 19:18:25 UTC (rev 5324)
@@ -684,6 +684,7 @@
     ) const
 {
 LMI_ASSERT(0 == a_year); // As noted above.
+// GetModalTgtPrem() now respects DB_TgtPremFixedAtIssue.
     if(TgtPremFixedAtIssue)
         {
         if(0 == a_year)
@@ -911,7 +912,6 @@
 }
 
 //============================================================================
-// For now at least, calls the same subroutine as GetModalTgtPrem().
 double BasicValues::GetModalMinPrem
     (int         a_year
     ,mcenum_mode a_mode
@@ -928,7 +928,8 @@
     ,double      a_specamt
     ) const
 {
-    double modal_prem = GetModalPrem(a_year, a_mode, a_specamt, TgtPremType);
+    int const target_year = TgtPremFixedAtIssue ? 0 : a_year;
+    double modal_prem = GetModalPrem(target_year, a_mode, a_specamt, 
TgtPremType);
 
     // TODO ?? Probably this should reflect policy fee. Some products
     // define only an annual target premium, and don't specify how to




reply via email to

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