diff --git a/Logic/Financial/FinancialAccountAutomationProfile.cs b/Logic/Financial/FinancialAccountAutomationProfile.cs index 155591b3..acabbac8 100644 --- a/Logic/Financial/FinancialAccountAutomationProfile.cs +++ b/Logic/Financial/FinancialAccountAutomationProfile.cs @@ -97,6 +97,7 @@ namespace Swarmops.Logic.Financial public bool CanManualUpload { get; set; } [XmlIgnore] + [JsonIgnore] public Country Country { get { return CountryId != 0? Country.FromIdentity(CountryId): null; } @@ -104,6 +105,7 @@ namespace Swarmops.Logic.Financial } [XmlIgnore] + [JsonIgnore] public Currency Currency { get { return CurrencyId != 0? Currency.FromIdentity(CurrencyId): null; } @@ -111,6 +113,7 @@ namespace Swarmops.Logic.Financial } [XmlIgnore] + [JsonIgnore] public ExternalBankDataProfile BankDataProfile { get { return BankDataProfileId != 0 ? ExternalBankDataProfile.FromIdentity(BankDataProfileId): null; } @@ -122,6 +125,7 @@ namespace Swarmops.Logic.Financial protected int CurrencyId { get; set; } [XmlIgnore] + [JsonIgnore] public int Identity { get { return FinancialAccountAutomationProfileId; } } } diff --git a/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs b/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs index d7ea1446..3b09a940 100644 --- a/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs +++ b/Site/Pages/v5/Ledgers/AccountPlan.aspx.cs @@ -511,7 +511,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers if (result.AutomationEnabled) { - // result.Profile = FinancialAccountAutomationProfile.FromIdentity(profileId); + result.Profile = FinancialAccountAutomationProfile.FromIdentity(profileId); // result.AutomationCurrencyCode = result.Profile.Currency.Code; // the "NonpresentationCurrency" field can't be set here, because we don't know the presentation currency }