lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1fa7e6e 3/3: Blank out certain composite spre


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1fa7e6e 3/3: Blank out certain composite spreadsheet columns
Date: Thu, 9 Jan 2020 13:31:18 -0500 (EST)

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

    Blank out certain composite spreadsheet columns
    
    Attained age and death benefit option generally cannot be composited
    because they may vary across cells.
    
    Some other vectors and scalars shown on spreadsheet output pose
    similar challenges, e.g.:
     - issue age behaves much as attained age, above;
     - interest rates ought perhaps to be averaged in some way.
    Such other challenges are not addressed in today's (admittedly
    piecemeal) fix.
---
 ledger_text_formats.cpp | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/ledger_text_formats.cpp b/ledger_text_formats.cpp
index 3914d2d..fd59376 100644
--- a/ledger_text_formats.cpp
+++ b/ledger_text_formats.cpp
@@ -555,9 +555,17 @@ void PrintCellTabDelimited
     for(int j = 0; j < max_length; ++j)
         {
         os << (j + 1                                    ) << '\t';
-        os << (j + Invar.Age                            ) << '\t';
 
-        os << Invar.DBOpt[j]                              << '\t';
+        if(ledger_values.is_composite())
+            {
+            os                                            << '\t';
+            os                                            << '\t';
+            }
+        else
+            {
+            os << (j + Invar.Age                        ) << '\t';
+            os << Invar.DBOpt[j]                          << '\t';
+            }
 
         os << Invar.value_str("EeGrossPmt"            ,j) << '\t';
         os << Invar.value_str("ErGrossPmt"            ,j) << '\t';



reply via email to

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