Defensive non-repetition of ID (elim error source)

This commit is contained in:
Rick Falkvinge
2018-04-25 09:28:14 +02:00
parent 3e48fe0d0c
commit 111a9082c1
+5 -5
View File
@@ -102,11 +102,11 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
// Hardcoded automation profiles for the time being
this.DropAccountAutomationProfile.Items.Add(new ListItem("[BTC] Bitcoin Core - Armory", "3"));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[BCH] Bitcoin Cash - Armory", "2"));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[CZ CZK] Fio CSV", "7"));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[DE EUR] Postbank CSV", "6"));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[SE SEK] SEB CSV", "5"));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[BTC] Bitcoin Core - Armory", ((int)(FinancialAccountAutomationProfileHardIds.BitcoinCoreArmory)).ToString()));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[BCH] Bitcoin Cash - Armory", ((int)(FinancialAccountAutomationProfileHardIds.BitcoinCoreArmory)).ToString()));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[CZ CZK] Fio CSV", ((int)(FinancialAccountAutomationProfileHardIds.BankCzechFio)).ToString()));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[DE EUR] Postbank CSV", ((int)(FinancialAccountAutomationProfileHardIds.BankGermanyPostbank)).ToString()));
this.DropAccountAutomationProfile.Items.Add(new ListItem("[SE SEK] SEB CSV", ((int)(FinancialAccountAutomationProfileHardIds.BankSwedenSeb)).ToString()));
}
PageAccessRequired = new Access (CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Write);