lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master be309ac 1/2: Fix defect introduced 20190129T2


From: Greg Chicares
Subject: [lmi-commits] [lmi] master be309ac 1/2: Fix defect introduced 20190129T2057Z: attained age on composite
Date: Wed, 30 Jan 2019 17:36:13 -0500 (EST)

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

    Fix defect introduced 20190129T2057Z: attained age on composite
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2019-01/msg00039.html
    As noted in an inline comment, this cannot be coded OAOO...
        // because 'column_end_of_year_age' is an enumerator whose value
        // may differ in each derived class.
---
 pdf_command_wx.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 020265b..5d6c373 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -2724,6 +2724,10 @@ class finra_split_fund_report : public 
page_with_tabular_report
         // premiums case or a single premium outlay column otherwise.
         switch(column)
             {
+            case column_end_of_year_age:
+                // This column doesn't make sense for composite ledgers.
+                return ledger_.is_composite();
+
             case column_er_gross_payment:
             case column_ee_gross_payment:
                 // These columns only appear in split premiums case.
@@ -2734,7 +2738,6 @@ class finra_split_fund_report : public 
page_with_tabular_report
                 return invar.SplitMinPrem;
 
             case column_policy_year:
-            case column_end_of_year_age:
             case column_guar0_cash_surr_value:
             case column_curr0_cash_surr_value:
             case column_guar0_account_value:



reply via email to

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