Fixed ugly bug: an old quickhack was causing wrong currency to be selected
This commit is contained in:
@@ -46,19 +46,6 @@ namespace Swarmops.Basic.Types.Structure
|
||||
public int PostalCodeLength { get; protected set; }
|
||||
public string PostalCodeFormat { get; protected set; }
|
||||
|
||||
public int CurrencyId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.Code == "SE")
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
throw new NotImplementedException ("BasicCountry.CurrencyId");
|
||||
}
|
||||
}
|
||||
|
||||
#region IHasIdentity Members
|
||||
|
||||
public int Identity
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Swarmops.Logic.Structure
|
||||
|
||||
public Currency Currency
|
||||
{
|
||||
get { return Currency.FromIdentity (CurrencyId); }
|
||||
get { return Currency.FromCode (CurrencyCode); }
|
||||
}
|
||||
|
||||
public static Country FromBasic (BasicCountry basic)
|
||||
|
||||
Reference in New Issue
Block a user