Removing pilot code

This commit is contained in:
Rick Falkvinge
2018-04-28 20:54:48 +02:00
parent b12ef267bf
commit 6784fafd4d
@@ -650,21 +650,6 @@ namespace Swarmops.Site.Pages.Ledgers
amountCents = row.TransactionGrossCents;
}
if (args.Organization.Identity == 1 && assetAccount.Identity == 1 &&
PilotInstallationIds.IsPilot (PilotInstallationIds.PiratePartySE))
{
// This is an ugly-as-fuck hack that sorts under the category "just bring our pilots the fuck back to operational
// status right fucking now".
// This code can and should be safely removed once the pilot's books are closed for 2014, which should be some time mid-2015.
if (row.DateTime < new DateTime (2014, 03, 22))
{
result.DuplicateTransactions++;
continue;
}
}
FinancialTransaction transaction = FinancialTransaction.ImportWithStub (args.Organization.Identity,
row.DateTime,
assetAccount.Identity, amountCents,