From 7fbb2ce799b0ac996c1e0f0edd02cd2e230bb3f6 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 16 Jan 2016 23:50:13 +0100 Subject: [PATCH] a comment --- Logic/Financial/FinancialTransactionRow.cs | 2 ++ 1 file changed, 2 insertions(+) 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"); }