lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 830e1fd 130/156: Manually break column titles


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 830e1fd 130/156: Manually break column titles into lines
Date: Tue, 30 Jan 2018 17:22:31 -0500 (EST)

branch: master
commit 830e1fd8ede77053aecaddfb4520c328aecf042c
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>

    Manually break column titles into lines
    
    Explicitly insert new lines into the supplemental report columns titles
    as PDF generation code doesn't wrap headers automatically.
---
 ledger_evaluator.cpp | 122 +++++++++++++++++++++++++--------------------------
 1 file changed, 61 insertions(+), 61 deletions(-)

diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index f7df63d..83ea4ef 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -166,68 +166,68 @@ ledger_evaluator Ledger::make_evaluator() const
     // they are defined only on a current basis--experience-rating
     // columns, e.g.
 
-    title_map["AVGenAcct_CurrentZero"           ] = "Curr Charges Account 
Value Gen Acct";
-    title_map["AVGenAcct_GuaranteedZero"        ] = "Guar Charges Account 
Value Gen Acct";
-    title_map["AVRelOnDeath_Current"            ] = "Account Value 
____Released on Death";
-    title_map["AVSepAcct_CurrentZero"           ] = "Curr Charges 0% Account 
Value Sep Acct";
-    title_map["AVSepAcct_GuaranteedZero"        ] = "Guar Charges 0% Account 
Value Sep Acct";
-    title_map["AcctVal_Current"                 ] = " _____________ Curr 
Account Value";
-    title_map["AcctVal_CurrentZero"             ] = "Curr Charges 0% Account 
Value";
-    title_map["AcctVal_Guaranteed"              ] = " _____________ Guar 
Account Value";
-    title_map["AcctVal_GuaranteedZero"          ] = "Guar Charges 0% Account 
Value";
-    title_map["AnnGAIntRate_Current"            ] = " _____________ Curr Ann 
Gen Acct Int Rate";
-    title_map["AnnSAIntRate_Current"            ] = " _____________ Curr Ann 
Sep Acct Int Rate";
-    title_map["AttainedAge"                     ] = " _____________ 
_____________ End of __Year Age";
-    title_map["BaseDeathBft_Current"            ] = " _____________ Curr Base 
Death Benefit";
-    title_map["BaseDeathBft_Guaranteed"         ] = " _____________ Guar Base 
Death Benefit";
-    title_map["COICharge_Current"               ] = " _____________ 
_____________ Curr COI Charge";
-    title_map["COICharge_Guaranteed"            ] = " _____________ 
_____________ Guar COI Charge";
-    title_map["CSVNet_Current"                  ] = " _____________ Curr Net 
Cash Surr Value";
-    title_map["CSVNet_CurrentZero"              ] = "Curr Charges 0% Net Cash 
Surr Value";
-    title_map["CSVNet_Guaranteed"               ] = " _____________ Guar Net 
Cash Surr Value";
-    title_map["CSVNet_GuaranteedZero"           ] = "Guar Charges 0% Net Cash 
Surr Value";
-    title_map["ClaimsPaid_Current"              ] = " _____________ _______ 
Curr ___Claims ___Paid";
-    title_map["CorridorFactor"                  ] = " _____________ 
_____________ Corridor Factor";
-    title_map["DeathProceedsPaid_Current"       ] = " _____________ Curr Death 
Proceeds Paid";
-    title_map["EOYDeathBft_Current"             ] = " _____________ Curr EOY 
Death Benefit";
-    title_map["EOYDeathBft_Guaranteed"          ] = " _____________ Guar EOY 
Death Benefit";
-    title_map["EeGrossPmt"                      ] = " _____________ ______ EE 
Gross Payment";
-    title_map["EeModalMinimumPremium"           ] = "EE Modal Minimum Premium";
-    title_map["ErGrossPmt"                      ] = " _____________ ______ ER 
Gross Payment";
-    title_map["ErModalMinimumPremium"           ] = "ER Modal Minimum Premium";
-    title_map["ExperienceReserve_Current"       ] = " _____________ Experience 
Rating Reserve";
-    title_map["GrossIntCredited_Current"        ] = "Curr Gross Int Credited";
-    title_map["GrossPmt"                        ] = " _____________ 
_____________ Premium Outlay";
-    title_map["InforceLives"                    ] = " _____________ ______BOY 
_______Lives _______Inforce";
-    title_map["IrrCsv_Current"                  ] = " _____________ 
_____________ Curr IRR on CSV";
-    title_map["IrrCsv_Guaranteed"               ] = " _____________ 
_____________ Guar IRR on CSV";
-    title_map["IrrDb_Current"                   ] = " _____________ 
_____________ Curr IRR on DB";
-    title_map["IrrDb_Guaranteed"                ] = " _____________ 
_____________ Guar IRR on DB";
-    title_map["KFactor_Current"                 ] = " _____________ Experience 
_______Rating K Factor";
-    title_map["LoanIntAccrued_Current"          ] = " _____________ ____Curr 
Loan Int __Accrued";
+    title_map["AVGenAcct_CurrentZero"           ] = "Curr Charges\nAccount 
Value\nGen Acct";
+    title_map["AVGenAcct_GuaranteedZero"        ] = "Guar Charges\nAccount 
Value\nGen Acct";
+    title_map["AVRelOnDeath_Current"            ] = "Account Value\nReleased 
on Death";
+    title_map["AVSepAcct_CurrentZero"           ] = "Curr Charges\n0% Account 
Value\nSep Acct";
+    title_map["AVSepAcct_GuaranteedZero"        ] = "Guar Charges\n0% Account 
Value\nSep Acct";
+    title_map["AcctVal_Current"                 ] = "Curr Account\nValue";
+    title_map["AcctVal_CurrentZero"             ] = "Curr Charges\n0% Account 
Value";
+    title_map["AcctVal_Guaranteed"              ] = "Guar Account\nValue";
+    title_map["AcctVal_GuaranteedZero"          ] = "Guar Charges\n0% Account 
Value";
+    title_map["AnnGAIntRate_Current"            ] = "Curr Ann\nGen Acct\nInt 
Rate";
+    title_map["AnnSAIntRate_Current"            ] = "Curr Ann\nSep Acct\nInt 
Rate";
+    title_map["AttainedAge"                     ] = "End of\nYear Age";
+    title_map["BaseDeathBft_Current"            ] = "Curr Base\nDeath Benefit";
+    title_map["BaseDeathBft_Guaranteed"         ] = "Guar Base\nDeath Benefit";
+    title_map["COICharge_Current"               ] = "Curr COI\nCharge";
+    title_map["COICharge_Guaranteed"            ] = "Guar COI\nCharge";
+    title_map["CSVNet_Current"                  ] = "Curr Net\nCash\nSurr 
Value";
+    title_map["CSVNet_CurrentZero"              ] = "Curr Charges\n0% Net 
Cash\nSurr Value";
+    title_map["CSVNet_Guaranteed"               ] = "Guar Net\nCash\nSurr 
Value";
+    title_map["CSVNet_GuaranteedZero"           ] = "Guar Charges\n0% Net 
Cash\nSurr Value";
+    title_map["ClaimsPaid_Current"              ] = "Curr\nClaims\nPaid";
+    title_map["CorridorFactor"                  ] = "Corridor Factor";
+    title_map["DeathProceedsPaid_Current"       ] = "Curr Death\nProceeds 
Paid";
+    title_map["EOYDeathBft_Current"             ] = "Curr EOY\nDeath Benefit";
+    title_map["EOYDeathBft_Guaranteed"          ] = "Guar EOY\nDeath Benefit";
+    title_map["EeGrossPmt"                      ] = "EE Gross\nPayment";
+    title_map["EeModalMinimumPremium"           ] = "EE 
Modal\nMinimum\nPremium";
+    title_map["ErGrossPmt"                      ] = "ER Gross\nPayment";
+    title_map["ErModalMinimumPremium"           ] = "ER 
Modal\nMinimum\nPremium";
+    title_map["ExperienceReserve_Current"       ] = 
"Experience\nRating\nReserve";
+    title_map["GrossIntCredited_Current"        ] = "Curr Gross\nInt Credited";
+    title_map["GrossPmt"                        ] = "Premium Outlay";
+    title_map["InforceLives"                    ] = "BOY\nLives\nInforce";
+    title_map["IrrCsv_Current"                  ] = "Curr IRR\non CSV";
+    title_map["IrrCsv_Guaranteed"               ] = "Guar IRR\non CSV";
+    title_map["IrrDb_Current"                   ] = "Curr IRR\non DB";
+    title_map["IrrDb_Guaranteed"                ] = "Guar IRR\non DB";
+    title_map["KFactor_Current"                 ] = "Experience\nRating K 
Factor";
+    title_map["LoanIntAccrued_Current"          ] = "Curr Loan\nInt\nAccrued";
     title_map["ModalMinimumPremium"             ] = "Modal Minimum Premium";
-    title_map["NetCOICharge_Current"            ] = "Experience _______Rating 
_______Net COI Charge";
-    title_map["NetClaims_Current"               ] = " _____________ 
_____________ Curr Net Claims";
-    title_map["NetDeathBenefit"                 ] = " _____________ __Net 
__Death Benefit";
-    title_map["NetIntCredited_Current"          ] = " _____________ Curr Net 
Int Credited";
-    title_map["NetWD"                           ] = " _____________ 
_____________ _____________ Withdrawal";
-    title_map["NewCashLoan"                     ] = " _____________ 
_____________ Annual Loan";
-    title_map["Outlay"                          ] = " _____________ 
_____________ ____Net Outlay";
-    title_map["PolicyFee_Current"               ] = "Curr ____Policy Fee";
-    title_map["PolicyYear"                      ] = " _____________ 
_____________ Policy __Year";
-    title_map["ProjectedCoiCharge_Current"      ] = "Experience Rating 
Projected COI Charge";
-    title_map["RiderCharges_Current"            ] = " _____________ 
_____________ Curr Rider Charges";
-    title_map["SepAcctCharges_Current"          ] = "Curr Sep Acct Charges";
-    title_map["SpecAmt"                         ] = " _____________ 
_____________ Specified Amount";
-    title_map["SpecAmtLoad_Current"             ] = " _____________ Curr Spec 
Amt Load";
-    title_map["SupplDeathBft_Current"           ] = " _____________ Curr Suppl 
Death Benefit";
-    title_map["SupplDeathBft_Guaranteed"        ] = " _____________ Guar Suppl 
Death Benefit";
-    title_map["SupplSpecAmt"                    ] = " _____________ Suppl 
Specified Amount";
-    title_map["TermPurchased_Current"           ] = " _____________ Curr Term 
Amt Purchased";
-    title_map["TermPurchased_Guaranteed"        ] = " _____________ Guar Term 
Amt Purchased";
-    title_map["TermSpecAmt"                     ] = " _____________ Term 
Specified Amount";
-    title_map["TotalLoanBalance_Current"        ] = " _____________ Curr Total 
Loan Balance";
-    title_map["TotalLoanBalance_Guaranteed"     ] = " _____________ Guar Total 
Loan Balance";
+    title_map["NetCOICharge_Current"            ] = "Experience\nRating\nNet 
COI Charge";
+    title_map["NetClaims_Current"               ] = "Curr Net\nClaims";
+    title_map["NetDeathBenefit"                 ] = "Net\nDeath Benefit";
+    title_map["NetIntCredited_Current"          ] = "Curr Net\nInt Credited";
+    title_map["NetWD"                           ] = "Withdrawal";
+    title_map["NewCashLoan"                     ] = "Annual Loan";
+    title_map["Outlay"                          ] = "Net Outlay";
+    title_map["PolicyFee_Current"               ] = "Curr\nPolicy Fee";
+    title_map["PolicyYear"                      ] = "Policy\nYear";
+    title_map["ProjectedCoiCharge_Current"      ] = 
"Experience\nRating\nProjected\nCOI Charge";
+    title_map["RiderCharges_Current"            ] = "Curr Rider\nCharges";
+    title_map["SepAcctCharges_Current"          ] = "Curr Sep\nAcct Charges";
+    title_map["SpecAmt"                         ] = "Specified Amount";
+    title_map["SpecAmtLoad_Current"             ] = "Curr Spec\nAmt Load";
+    title_map["SupplDeathBft_Current"           ] = "Curr Suppl\nDeath 
Benefit";
+    title_map["SupplDeathBft_Guaranteed"        ] = "Guar Suppl\nDeath 
Benefit";
+    title_map["SupplSpecAmt"                    ] = "Suppl Specified Amount";
+    title_map["TermPurchased_Current"           ] = "Curr Term\nAmt Purchased";
+    title_map["TermPurchased_Guaranteed"        ] = "Guar Term\nAmt Purchased";
+    title_map["TermSpecAmt"                     ] = "Term Specified Amount";
+    title_map["TotalLoanBalance_Current"        ] = "Curr Total\nLoan Balance";
+    title_map["TotalLoanBalance_Guaranteed"     ] = "Guar Total\nLoan Balance";
 
     // TODO ?? Titles ought to be read from an external file that
     // permits flexible customization. Compliance might require that



reply via email to

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