lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1754e1a: Prevent an MST error


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1754e1a: Prevent an MST error
Date: Tue, 13 Feb 2018 21:44:51 -0500 (EST)

branch: master
commit 1754e1a14fdf3d130c75ad6b39f32ec65497276b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Prevent an MST error
    
    Running an inforce illustration that uses 'reg_header.mst' when the
    inforce year is two or more produced an error. This change, committed
    for review, prevents that, though not necessarily in the best way. See:
      https://lists.nongnu.org/archive/html/lmi/2018-02/msg00090.html
---
 ledger_pdf_generator_wx.cpp |  5 +++++
 reg_header.mst              | 10 +++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 19ae62b..cbba06a 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -2077,6 +2077,11 @@ class pdf_illustration_regular : public pdf_illustration
             );
 
         add_variable
+            ("InforceYearEq0"
+            ,invar.InforceYear == 0
+            );
+
+        add_variable
             ("InforceYearLE4"
             ,invar.InforceYear < 4
             );
diff --git a/reg_header.mst b/reg_header.mst
index edd29de..5921e0a 100644
--- a/reg_header.mst
+++ b/reg_header.mst
@@ -89,12 +89,12 @@
             Guaranteed Crediting Rate: {{InitAnnGenAcctInt_Guaranteed}}<br>
 
             Current Illustrated Crediting Rate:
-            {{#InforceYear}}
-                {{UltimateInterestRate}}
-            {{/InforceYear}}
-            {{^InforceYear}}
+            {{#InforceYearEq0}}
                 {{InitAnnGenAcctInt_Current}}
-            {{/InforceYear}}
+            {{/InforceYearEq0}}
+            {{^InforceYearEq0}}
+                {{UltimateInterestRate}}
+            {{/InforceYearEq0}}
             <br>
 
             {{#SinglePremium}}



reply via email to

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