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.txtindex 76e44eacaa..ef83653194 100644--- a/.github/actions/spelling/allow/keywords.txt+++ b/.github/actions/spelling/allow/keywords.txt@@ -37,6 +37,7 @@ dmgeasybankEdenredescodegen+EURexpandoFirefoxflyctldiff --git a/docs-sidebar.js b/docs-sidebar.jsindex 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.mdnew file mode 100644index 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)```).++ ++ 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:**++ ++ - 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.++ ++ ++ ++ - *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:**++ ++ - 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).++ ++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.++++3. Return to the foreign currency account to verify that the transaction was converted.++ diff --git a/static/img/multi-currency/account-name-and-note.png b/static/img/multi-currency/account-name-and-note.pngnew file mode 100644index 0000000000..b199792264Binary files /dev/null and b/static/img/multi-currency/account-name-and-note.png differdiff --git a/static/img/multi-currency/rule-1.png b/static/img/multi-currency/rule-1.pngnew file mode 100644index 0000000000..c4c73a4a67Binary files /dev/null and b/static/img/multi-currency/rule-1.png differdiff --git a/static/img/multi-currency/rule-2.png b/static/img/multi-currency/rule-2.pngnew file mode 100644index 0000000000..ab4f0ba3ecBinary files /dev/null and b/static/img/multi-currency/rule-2.png differdiff --git a/static/img/multi-currency/rule-action-normal-instructions.png b/static/img/multi-currency/rule-action-normal-instructions.pngnew file mode 100644index 0000000000..552a83a070Binary files /dev/null and b/static/img/multi-currency/rule-action-normal-instructions.png differdiff --git a/static/img/multi-currency/rule-action-normal.png b/static/img/multi-currency/rule-action-normal.pngnew file mode 100644index 0000000000..ac85077e32Binary files /dev/null and b/static/img/multi-currency/rule-action-normal.png differdiff --git a/static/img/multi-currency/rule-action-template.png b/static/img/multi-currency/rule-action-template.pngnew file mode 100644index 0000000000..c356153d52Binary files /dev/null and b/static/img/multi-currency/rule-action-template.png differdiff --git a/static/img/multi-currency/rule-action.png b/static/img/multi-currency/rule-action.pngnew file mode 100644index 0000000000..e5f03e908dBinary files /dev/null and b/static/img/multi-currency/rule-action.png differdiff --git a/static/img/multi-currency/usage-convert.png b/static/img/multi-currency/usage-convert.pngnew file mode 100644index 0000000000..5e63dda161Binary files /dev/null and b/static/img/multi-currency/usage-convert.png differdiff --git a/static/img/multi-currency/usage-postconvert.png b/static/img/multi-currency/usage-postconvert.pngnew file mode 100644index 0000000000..233798ace8Binary files /dev/null and b/static/img/multi-currency/usage-postconvert.png differdiff --git a/static/img/multi-currency/usage-preconvert.png b/static/img/multi-currency/usage-preconvert.pngnew file mode 100644index 0000000000..2b9552538bBinary files /dev/null and b/static/img/multi-currency/usage-preconvert.png differ