lmi
[Top][All Lists]
Advanced

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

[lmi] Group quotes: effective date in "Plan Summary"


From: Greg Chicares
Subject: [lmi] Group quotes: effective date in "Plan Summary"
Date: Tue, 29 Sep 2015 12:39:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

Vadim--Because you're reworking the "Plan Summary" box, would you
prefer that I send you patches like the following, rather than
committing them directly? Here, in particular, I'm not sure whether
you want to rearrange the order of struct global_report_data members,
and I didn't want to make that any harder.

This patch gets "effective date" from input instead of setting it to
the current date:

Index: group_quote_pdf_gen_wx.cpp
===================================================================
--- group_quote_pdf_gen_wx.cpp  (revision 6301)
+++ group_quote_pdf_gen_wx.cpp  (working copy)
@@ -295,6 +295,7 @@
         std::string plan_type_;
         std::string premium_mode_;
         std::string contract_state_;
+        std::string effective_date_;
         std::string footer_;
         };
     global_report_data report_data_;
@@ -369,6 +370,8 @@
     available_riders_ = "Waiver, ADB, ABR, Spouse or Child"; // FIXME
     premium_mode_     = ledger.InitErMode;
     contract_state_   = ledger.GetStatePostalAbbrev();
+    jdn_t eff_date    = jdn_t(static_cast<int>(ledger.EffDateJdn));
+    effective_date_   = ConvertDateToWx(eff_date).FormatDate();
     footer_           = ledger.MarketingNameFootnote;
     // Input::Comments will replace these two:
     guarantee_issue_max_ = "$500,000"; // FIXME
@@ -828,7 +831,7 @@
          "<td align=\"right\"><b>Number of 
participants:&nbsp;&nbsp;</b></td><td>%d</td>"
          "</tr>"
          "</table>"
-        ,wxDateTime::Today().FormatDate()
+        ,escape_for_html_elem(report_data_.effective_date_)
         ,escape_for_html_elem(report_data_.plan_type_)
         ,escape_for_html_elem(report_data_.guarantee_issue_max_)
         ,escape_for_html_elem(report_data_.premium_mode_)



reply via email to

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