diff --git a/Logic/Financial/FinancialTransactionRow.cs b/Logic/Financial/FinancialTransactionRow.cs index a4106722..5daf3abd 100644 --- a/Logic/Financial/FinancialTransactionRow.cs +++ b/Logic/Financial/FinancialTransactionRow.cs @@ -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"); }