[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5028] Optionally reverse the meaning of 'DB_PremTaxState'
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5028] Optionally reverse the meaning of 'DB_PremTaxState', for testing |
Date: |
Thu, 08 Jul 2010 13:04:46 +0000 |
Revision: 5028
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5028
Author: chicares
Date: 2010-07-08 13:04:45 +0000 (Thu, 08 Jul 2010)
Log Message:
-----------
Optionally reverse the meaning of 'DB_PremTaxState', for testing
Modified Paths:
--------------
lmi/trunk/ChangeLog
lmi/trunk/database.cpp
Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2010-07-06 16:56:16 UTC (rev 5027)
+++ lmi/trunk/ChangeLog 2010-07-08 13:04:45 UTC (rev 5028)
@@ -26300,3 +26300,8 @@
Remove a defunct defect marker. See:
http://lists.nongnu.org/archive/html/lmi/2010-07/msg00013.html
+20100708T1304Z <address@hidden> [693]
+
+ database.cpp
+Optionally reverse the meaning of 'DB_PremTaxState', for testing.
+
Modified: lmi/trunk/database.cpp
===================================================================
--- lmi/trunk/database.cpp 2010-07-06 16:56:16 UTC (rev 5027)
+++ lmi/trunk/database.cpp 2010-07-08 13:04:45 UTC (rev 5028)
@@ -30,6 +30,7 @@
#include "alert.hpp"
#include "assert_lmi.hpp"
+#include "contains.hpp"
#include "data_directory.hpp"
#include "dbdict.hpp"
#include "dbvalue.hpp"
@@ -130,16 +131,17 @@
;
}
+ bool swap = contains(input.Comments, "idiosyncrasy_swap_old_tax_state");
switch(static_cast<int>(Query(DB_PremTaxState)))
{
case oe_ee_state:
{
- State = input.State;
+ State = swap ? input.CorporationState : input.State;
}
break;
case oe_er_state:
{
- State = input.CorporationState;
+ State = swap ? input.State : input.CorporationState;
}
break;
default:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5028] Optionally reverse the meaning of 'DB_PremTaxState', for testing,
Greg Chicares <=