lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master db81cdc 12/16: Correct a guaranteed-premium f


From: Greg Chicares
Subject: [lmi-commits] [lmi] master db81cdc 12/16: Correct a guaranteed-premium footnote
Date: Sat, 11 Apr 2020 20:36:04 -0400 (EDT)

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

    Correct a guaranteed-premium footnote
    
    Guaranteed premium reflects individual mode, not corporation mode.
    This footnote has always incorrectly stated the corporation mode.
---
 ill_reg_narr_summary.mst |  9 +++++----
 pdf_command_wx.cpp       | 19 ++++++++++++-------
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/ill_reg_narr_summary.mst b/ill_reg_narr_summary.mst
index 8513cb9..53ce52e 100644
--- a/ill_reg_narr_summary.mst
+++ b/ill_reg_narr_summary.mst
@@ -54,7 +54,8 @@
 }}
 
 {{^SinglePremium}}
-    Premiums are assumed to be paid on {{ErModeLCWithArticle}}
+    Premiums are assumed to be paid on
+    {{InitErModeWithIndefiniteArticle}}
     basis and received at the beginning of the premium paying period.
 {{/SinglePremium}}
 {{#SinglePremium}}
@@ -70,9 +71,9 @@ overhead expenses is the fully allocated expense method.
 
 {{^SinglePremium}}
     <p>
-    In order to guarantee coverage to age
-    {{EndtAge}}, {{ErModeLCWithArticle}} premium
-    of ${{GuarPrem}} must be paid.
+    In order to guarantee coverage to age {{EndtAge}},
+    {{InitEeModeWithIndefiniteArticle}}
+    premium of ${{GuarPrem}} must be paid.
     This amount is based on the guaranteed monthly charges
     and the guaranteed interest crediting rate.
     {{#DefnLifeInsIsGPT}}
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 06be801..96cb575 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -2228,14 +2228,19 @@ class pdf_illustration_naic : public pdf_illustration
             ,oe_limited_flexible_premium == invar.IsSinglePremium
             );
 
-        // Variable representing the premium payment frequency with the
-        // appropriate indefinite article preceding it, e.g. "an annual"
-        // or "a monthly".
-        std::string mode0 = invar.InitErMode;
-        mode0[0] = lmi_tolower(mode0[0]);
+        // Lowercase initial payment mode with prepended indefinite
+        // article: e.g., "an annual" or "a monthly".
+        std::string eemode0 = invar.InitEeMode;
+        eemode0[0] = lmi_tolower(eemode0[0]);
         add_variable
-            ("ErModeLCWithArticle"
-            ,(std::strchr("aeiou", mode0[0]) ? "an " : "a ") + mode0
+            ("InitEeModeWithIndefiniteArticle"
+            ,(std::strchr("aeiou", eemode0[0]) ? "an " : "a ") + eemode0
+            );
+        std::string ermode0 = invar.InitErMode;
+        ermode0[0] = lmi_tolower(ermode0[0]);
+        add_variable
+            ("InitErModeWithIndefiniteArticle"
+            ,(std::strchr("aeiou", ermode0[0]) ? "an " : "a ") + ermode0
             );
 
         add_variable



reply via email to

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