Debug testing

This commit is contained in:
Rick Falkvinge
2018-04-28 13:30:27 +02:00
parent 5b058a12eb
commit 2bcec3ceb4
2 changed files with 5 additions and 1 deletions
@@ -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; } }
}
+1 -1
View File
@@ -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
}