lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 3d6e389 07/15: Simplify single-premium logic


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 3d6e389 07/15: Simplify single-premium logic
Date: Tue, 27 Aug 2019 13:50:19 -0400 (EDT)

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

    Simplify single-premium logic
    
    What was asserted in commit 89e684ce of 20190802T2218Z is now relied
    upon. DB_IsSinglePremium accordingly replaces fragile and arcane logic
    that purported to deduce product characteristics from 'PolicyLegalName'.
---
 pdf_command_wx.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index bfbfb10..b14801d 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -2241,14 +2241,9 @@ class pdf_illustration_naic : public pdf_illustration
             ||test_variable("ModifiedSinglePremium0")
             );
 
-        bool const is_single_premium =
-               starts_with(policy_name, "Single")
-            || starts_with(policy_name, "Modified")
-            ;
-        LMI_ASSERT(is_single_premium == invar.IsSinglePremium);
         add_variable
             ("SinglePremium"
-            ,is_single_premium
+            ,bourn_cast<bool>(invar.IsSinglePremium)
             );
 
         // Variable representing the premium payment frequency with the



reply via email to

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