From 111a9082c1213950afbb77d42e18557a61959bb5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 25 Apr 2018 09:28:14 +0200 Subject: [PATCH] Defensive non-repetition of ID (elim error source) --- Site/Pages/v5/Ledgers/AccountPlan.aspx.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs b/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs index 28ec2682..b58799d0 100644 --- a/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs +++ b/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs @@ -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);