[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6358] Refuse to run a group quote if any cell lapses in t
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6358] Refuse to run a group quote if any cell lapses in the first year |
Date: |
Sat, 17 Oct 2015 13:07:42 +0000 |
Revision: 6358
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6358
Author: chicares
Date: 2015-10-17 13:07:42 +0000 (Sat, 17 Oct 2015)
Log Message:
-----------
Refuse to run a group quote if any cell lapses in the first year
Modified Paths:
--------------
lmi/trunk/group_quote_pdf_gen_wx.cpp
Modified: lmi/trunk/group_quote_pdf_gen_wx.cpp
===================================================================
--- lmi/trunk/group_quote_pdf_gen_wx.cpp 2015-10-17 12:59:18 UTC (rev
6357)
+++ lmi/trunk/group_quote_pdf_gen_wx.cpp 2015-10-17 13:07:42 UTC (rev
6358)
@@ -35,6 +35,7 @@
#include "force_linking.hpp"
#include "ledger.hpp"
#include "ledger_invariant.hpp"
+#include "ledger_variant.hpp"
#include "ledger_text_formats.hpp" // ledger_format()
#include "mc_enum_types_aux.hpp" // is_subject_to_ill_reg()
#include "miscellany.hpp" // split_into_lines()
@@ -599,6 +600,11 @@
void group_quote_pdf_generator_wx::add_ledger(Ledger const& ledger)
{
+ if(0 == ledger.GetCurrFull().LapseYear)
+ {
+ fatal_error() << "Lapsed during first year." << LMI_FLUSH;
+ }
+
LedgerInvariant const& invar = ledger.GetLedgerInvariant();
// Initialize 'report_data_' the first time this function is
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6358] Refuse to run a group quote if any cell lapses in the first year,
Greg Chicares <=