lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ce9d6b8 04/16: Change compositing for some st


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ce9d6b8 04/16: Change compositing for some string members
Date: Sat, 11 Apr 2020 20:36:02 -0400 (EDT)

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

    Change compositing for some string members
    
    Set composite 'Smoker' to empty, because 'Gender' is empty.
    
    Set composite 'UWType' and 'CountryIso3166Abbrev' equal to the last
    cell's value, because these members are often the same for all cells.
---
 ledger_invariant.cpp | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index a32ec8b..c97dc02 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -732,16 +732,19 @@ LedgerInvariant& LedgerInvariant::PlusEq(LedgerInvariant 
const& a_Addend)
     ProducerId                    = a_Addend.ProducerId;
     CorpName                      = a_Addend.CorpName;
     MasterContractNumber          = a_Addend.MasterContractNumber;
-    // This would necessarily vary by life:
-//  ContractNumber                = "";
 
-    Insured1                      = ""; // a_Addend.Insured1;
-    Gender                        = ""; // a_Addend.Gender;
-    UWType                        = ""; // a_Addend.UWType;
+    // This would often or even necessarily vary by life (except the
+    // "group underwriting type"...which might be "simplified" for most
+    // insureds, but "medical" for the oldest, but is most often the
+    // same for all):
+    ContractNumber                = "";
+    Insured1                      = "";
+    Gender                        = "";
+    UWType                        = a_Addend.UWType;
+    Smoker                        = "";
+    UWClass                       = "";
+    SubstandardTable              = "";
 
-    Smoker                        = a_Addend.Smoker;
-    UWClass                       = ""; // a_Addend.UWClass;
-    SubstandardTable              = ""; // a_Addend.SubstandardTable;
     DefnLifeIns                   = a_Addend.DefnLifeIns;
     DefnMaterialChange            = a_Addend.DefnMaterialChange;
     AvoidMec                      = a_Addend.AvoidMec;
@@ -750,7 +753,7 @@ LedgerInvariant& LedgerInvariant::PlusEq(LedgerInvariant 
const& a_Addend)
 
     StateOfJurisdiction           = a_Addend.StateOfJurisdiction;
     PremiumTaxState               = a_Addend.PremiumTaxState;
-    CountryIso3166Abbrev          = ""; // a_Addend.CountryIso3166Abbrev;
+    CountryIso3166Abbrev          = a_Addend.CountryIso3166Abbrev;
     Comments                      = a_Addend.Comments;
 
     // The composite has a supplemental report iff every cell has one,



reply via email to

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