lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6569] Improve consistency testing for an odd legacy produ


From: gchicares
Subject: [lmi-commits] [6569] Improve consistency testing for an odd legacy product
Date: Mon, 9 May 2016 18:44:57 +0000 (UTC)

Revision: 6569
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6569
Author:   chicares
Date:     2016-05-09 18:44:57 +0000 (Mon, 09 May 2016)
Log Message:
-----------
Improve consistency testing for an odd legacy product

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/group_quote_pdf_gen_wx.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2016-05-09 17:08:16 UTC (rev 6568)
+++ lmi/trunk/ChangeLog 2016-05-09 18:44:57 UTC (rev 6569)
@@ -39024,3 +39024,13 @@
   group_quote_pdf_gen_wx.cpp
 Refactor.
 
+20160509T1708Z <address@hidden> [451]
+
+  group_quote_pdf_gen_wx.cpp
+Show elected riders.
+
+20160509T1844Z <address@hidden> [451]
+
+  group_quote_pdf_gen_wx.cpp
+Improve consistency testing for an odd legacy product.
+

Modified: lmi/trunk/group_quote_pdf_gen_wx.cpp
===================================================================
--- lmi/trunk/group_quote_pdf_gen_wx.cpp        2016-05-09 17:08:16 UTC (rev 
6568)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp        2016-05-09 18:44:57 UTC (rev 
6569)
@@ -617,10 +617,12 @@
     page_metrics page_;
 
     int row_num_;
+    int individual_selection_;
 };
 
 group_quote_pdf_generator_wx::group_quote_pdf_generator_wx()
     :row_num_(0)
+    ,individual_selection_(99)
 {
 }
 
@@ -753,6 +755,21 @@
 
     LedgerInvariant const& invar = ledger.GetLedgerInvariant();
 
+    if(99 == individual_selection_) // no previous ledger processed yet
+        {
+        individual_selection_ = invar.GroupIndivSelection;
+        }
+    else
+        {
+        if(invar.GroupIndivSelection != individual_selection_)
+            {
+            fatal_error()
+                << "Group quotes cannot mix mandatory and voluntary on the 
same plan."
+                << LMI_FLUSH
+                ;
+            }
+        }
+
     int const year = 0;
 
     std::pair<int, oenum_format_style> const f0(0, oe_format_normal);




reply via email to

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