a comment

This commit is contained in:
Rick Falkvinge
2016-01-16 23:50:13 +01:00
parent d8291b6cdb
commit 7fbb2ce799
@@ -76,6 +76,8 @@ namespace Swarmops.Logic.Financial
}
else if (this.Account.ForeignCurrency.Identity != value.Currency.Identity)
{
// This is not a database limitation, there can be multiple foreign-currency cents per row, but for now, let's limit to one.
throw new InvalidOperationException("Trying to assign foreign-currency value to account with a different foreign currency set");
}