Inserted special case for pilot

This commit is contained in:
Rick Falkvinge
2014-06-10 13:16:20 +00:00
parent cc5649298a
commit 06ede9b8ff
+7 -1
View File
@@ -91,7 +91,6 @@ namespace Swarmops.Logic.Financial
}
}
ExternalBankDataRecord newRecord = new ExternalBankDataRecord();
if (fieldNameLookup.ContainsKey(ExternalBankDataFieldName.Description))
@@ -161,6 +160,13 @@ namespace Swarmops.Logic.Financial
dateTime -= timeZone; // minus, to bring the time to UTC. If time 13:00 is in tz +01:00, the UTC time is 12:00
}
// PILOT SPECIAL CASE: if Paypal and PPSE Pilot program, ignore everything before 2014
if (dateTime.Year < 2014 && organization.Identity == 1 && fieldNameLookup.ContainsKey(ExternalBankDataFieldName.UniqueId) && organization.Name == "Piratpartiet SE")
{
continue; // Do not import PayPal records from before 2013
}
newRecord.DateTime = dateTime;
if (!fieldNameLookup.ContainsKey(ExternalBankDataFieldName.TransactionNet))