From 06ede9b8fff6bf51be5b05ce532ae97c976a4085 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 10 Jun 2014 13:16:20 +0000 Subject: [PATCH] Inserted special case for pilot --- Logic/Financial/ExternalBankData.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Logic/Financial/ExternalBankData.cs b/Logic/Financial/ExternalBankData.cs index 0db383f4..13c8763a 100644 --- a/Logic/Financial/ExternalBankData.cs +++ b/Logic/Financial/ExternalBankData.cs @@ -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))