Skip to content

A local-first personal finance app

Add Page for Multi-Currency Support (#594)

Travis Lesicka15b716952900
diff --git a/.github/actions/spelling/allow/keywords.txt b/.github/actions/spelling/allow/keywords.txt
index 76e44eacaa..ef83653194 100644
--- a/.github/actions/spelling/allow/keywords.txt
+++ b/.github/actions/spelling/allow/keywords.txt
@@ -37,6 +37,7 @@ dmg
easybank
Edenred
escodegen
+EUR
expando
Firefox
flyctl
diff --git a/docs-sidebar.js b/docs-sidebar.js
index 0706232dc1..7ca84287d9 100644
--- a/docs-sidebar.js
+++ b/docs-sidebar.js
@@ -133,6 +133,7 @@ const sidebars = {
},
items: ['budgeting/credit-cards/carrying-debt'],
},
+ 'budgeting/multi-currency',
'budgeting/joint-accounts',
'advanced/restart'
],
diff --git a/docs/budgeting/multi-currency.md b/docs/budgeting/multi-currency.md
new file mode 100644
index 0000000000..3d61f9942b
--- /dev/null
+++ b/docs/budgeting/multi-currency.md
@@ -0,0 +1,94 @@
+# Multi-Currency
+The Actual Budget software is currency agnostic and does not support multi-currency. People are working on implementing currency support, but it will take time.
+For the current status visit:
+https://github.com/tlesicka/actual-budget-multicurrency-todo
+
+## Method to Implement Multi-Currency Using Rule Templates
+Until multi-currency is supported natively by Actual Budget, you can use the method described in this document to achieve similar results.
+
+:::warning
+This uses an *experimental feature*, so we’re still working on finishing it. There may be bugs, missing functionality, or incomplete documentation, and we may decide to remove the feature in a future release. If you have any feedback, please [open an issue](https://github.com/actualbudget/actual/issues) or post a message in Discord.
+:::
+
+## Setup
+1. Enable Rule Action Templating
+ - In the sidebar, click on the *Settings->Show advanced settings->Experimental features*.
+ - Click *I understand the risks, show experimental features*.
+ - Click _Rule action templating_.
+
+2. Create Foreign Currency Account
+ - As an optional step, you can create a new account for the foreign currency, either:
+ - Add a note to the account ```#currency:XXX``` where XXX is the 3-letter currency code as defined by [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) (i.e., EUR, USD, AUD, etc).
+ - Name the account with the currency code in parens (i.e., ```Australian Cash (AUD)```).
+
+ ![Account Name and Notes](/static/img/multi-currency/account-name-and-note.png)
+
+ Neither is required, but naming the account this way or creating a note will allow a smooth transition when multi-currency is enabled.
+
+3. Create Rules
+
+ You will need to create two separate rules for each foreign currency account.
+
+ **Rule 1:**
+
+ ![Rule 1](/static/img/multi-currency/rule-1.png)
+
+ - From the Rules page, click on the *Create new rule* button in the bottom right.
+ - In the Rule Modal edit popup.
+ - In *Stage of rule* select **Post**.
+ - *Conditions* must be set to **if ```All``` of these conditions match**.
+ - ```Account``` **is**, and select the foreign currency account.
+ - ```notes``` **is not** set to *nothing*.
+ - ```notes``` **does not contain** *FX rate:*
+ - Under *Then apply these actions:*
+ - Click the Template toggle button on the left side of the action, just to the right of the -/+ symbols. The action must be of type *set notes* or *set amount* before the Template toggle button appears.
+
+ ![Rule Action Template mode not available](/static/img/multi-currency/rule-action.png)
+
+ ![Rule Action Normal Mode](/static/img/multi-currency/rule-action-normal-instructions.png)
+
+ ![Rule Action Template Mode](/static/img/multi-currency/rule-action-template.png)
+
+ - *set notes* with this content: **{{ fixed (div amount 100) 2 }} XXX (FX rate: FX_RATE) • {{ notes }}**, where XXX is the currency code.
+ - FX_RATE is the exchange rate (i.e., insert 0.65 for 1 AUD = 0.65 USD).
+ - Click the + symbol to add a new action line.
+ - Click the Template toggle button for this line.
+ - *set amount* to: **{{ fixed (mul amount FX_RATE) 0 }}**.
+ - FX_RATE is the same as above.
+ - Click on the *Save* button.
+
+ **Rule 2:**
+
+ ![Rule 2](/static/img/multi-currency/rule-2.png)
+
+ - From the Rules page, click on the *Create new rule* button in the bottom right.
+ - In the Rule Modal edit popup.
+ - In *Stage of rule* select **Post**.
+ - *Conditions* must be set to **if ```All``` of these conditions match**.
+ - ```Account``` **is**, and select the foreign currency account.
+ - ```notes``` **is** set to *nothing*.
+ - Under *Then apply these actions:*
+ - Click the Template toggle button on the left side of the action, just to the right of the -/+ symbols.
+ - *set notes* with this content: **{{ fixed (div amount 100) 2 }} XXX (FX rate: FX_RATE)**, where XXX is the same currency code from the first rule.
+ - FX_RATE is the exchange rate from the first rule.
+ - Click the + symbol to add a new action line.
+ - Click the Template toggle button for this line.
+ - *set amount* to: **{{ fixed (mul amount FX_RATE) 0 }}**.
+ - FX_RATE is the same as above.
+ - Click on the *Save* button.
+
+## Usage
+1. Create a transaction in the foreign currency account using the foreign currency amount. (i.e., if the normal budget currency is USD but the account is AUD, then enter the AUD amount in the Payment or Deposit column).
+
+ ![Pre-Conversion Transaction](/static/img/multi-currency/usage-preconvert.png)
+
+2. Go to the Rules page and select one of the two rules for that account. At the bottom will be transactions to which the rule can be applied.
+ - If you do not see the transaction(s) that you want to convert, click cancel and check the other rule for that account.
+ - Select the transaction(s) that you would like to convert and click the *Apply actions* button.
+ - Once the actions have been applied, click cancel since you don't want to change the rule.
+
+![Apply Exchange Rate to Transaction](/static/img/multi-currency/usage-convert.png)
+
+3. Return to the foreign currency account to verify that the transaction was converted.
+
+ ![Post-Conversion Transaction](/static/img/multi-currency/usage-postconvert.png)
diff --git a/static/img/multi-currency/account-name-and-note.png b/static/img/multi-currency/account-name-and-note.png
new file mode 100644
index 0000000000..b199792264
Binary files /dev/null and b/static/img/multi-currency/account-name-and-note.png differ
diff --git a/static/img/multi-currency/rule-1.png b/static/img/multi-currency/rule-1.png
new file mode 100644
index 0000000000..c4c73a4a67
Binary files /dev/null and b/static/img/multi-currency/rule-1.png differ
diff --git a/static/img/multi-currency/rule-2.png b/static/img/multi-currency/rule-2.png
new file mode 100644
index 0000000000..ab4f0ba3ec
Binary files /dev/null and b/static/img/multi-currency/rule-2.png differ
diff --git a/static/img/multi-currency/rule-action-normal-instructions.png b/static/img/multi-currency/rule-action-normal-instructions.png
new file mode 100644
index 0000000000..552a83a070
Binary files /dev/null and b/static/img/multi-currency/rule-action-normal-instructions.png differ
diff --git a/static/img/multi-currency/rule-action-normal.png b/static/img/multi-currency/rule-action-normal.png
new file mode 100644
index 0000000000..ac85077e32
Binary files /dev/null and b/static/img/multi-currency/rule-action-normal.png differ
diff --git a/static/img/multi-currency/rule-action-template.png b/static/img/multi-currency/rule-action-template.png
new file mode 100644
index 0000000000..c356153d52
Binary files /dev/null and b/static/img/multi-currency/rule-action-template.png differ
diff --git a/static/img/multi-currency/rule-action.png b/static/img/multi-currency/rule-action.png
new file mode 100644
index 0000000000..e5f03e908d
Binary files /dev/null and b/static/img/multi-currency/rule-action.png differ
diff --git a/static/img/multi-currency/usage-convert.png b/static/img/multi-currency/usage-convert.png
new file mode 100644
index 0000000000..5e63dda161
Binary files /dev/null and b/static/img/multi-currency/usage-convert.png differ
diff --git a/static/img/multi-currency/usage-postconvert.png b/static/img/multi-currency/usage-postconvert.png
new file mode 100644
index 0000000000..233798ace8
Binary files /dev/null and b/static/img/multi-currency/usage-postconvert.png differ
diff --git a/static/img/multi-currency/usage-preconvert.png b/static/img/multi-currency/usage-preconvert.png
new file mode 100644
index 0000000000..2b9552538b
Binary files /dev/null and b/static/img/multi-currency/usage-preconvert.png differ