cardinal
Accounting

Multi-currency

Account and party currencies, where ERP finds an exchange rate, and how Exchange Rate Revaluation books unrealized gains.

A company keeps its books in one currency. An account, and so a customer or supplier, can hold another. Every voucher in a foreign currency carries an Exchange Rate to the company currency, and the GL stores both amounts.

Currencies on a voucher

An Account's Currency field sets its account currency. A Journal Entry row shows Debit in Account Currency and the row's Exchange Rate. A Sales or Purchase Invoice has a Currency and an Exchange Rate to the company currency, and Party Account Currency shows the currency of the party's receivable or payable account.

ERP checks the party's default account. If its currency is neither the company currency nor the voucher's Currency, saving fails with "Accounting Entry for Customer: ... can only be made in currency: ...".

Where a rate comes from

When a voucher's Currency differs from the company currency and Exchange Rate is blank, ERP looks one up in this order.

Currency Exchange records

The latest record on or before the posting date, for selling or buying as the voucher needs. A record entered the other way round (INR to USD instead of USD to INR) counts by its inverse. On the same date the direct pair wins. With Accounts Settings' Allow Stale Exchange Rates off, records older than Stale Days are ignored.

Pegged Currencies

Only with Accounts Settings' Allow Implicit Pegged Currency Conversion on. ERP converts through the peg, for example AED to USD at 3.6725.

Currency Exchange Settings

The provider's answer, fetched over HTTP. Nothing is fetched when the settings are Disabled or unset.

If all three give nothing, the voucher fails with "Exchange Rate is mandatory. Maybe Currency Exchange record is not created for USD to INR."

Currency Exchange

FieldMeaning
DateDefaults to today
From Currency, To CurrencyThe pair. They may not be the same
Exchange RateUnits of To Currency for one From Currency. Must be greater than 0
For Buying, For SellingAt least one must be checked

ERP names the record <date>-<from>-<to>-<purpose>, for example 2026-11-23-USD-INR-Selling-Buying.

Currency Exchange Settings

A new site leaves it unset, so no site calls an outside service until a System Manager picks a Service Provider: frankfurter.dev, exchangerate.host, frankfurter.dev - v2 or Custom. A provider other than Custom fills API Endpoint and both tables on save. Saving tests the settings with a USD to INR request.

With Custom you fill them yourself. The Parameters table holds query keys and values, and the Result Key table holds the keys that lead to the rate in the JSON answer, applied in order. The endpoint, the values and the keys can use {from_currency}, {to_currency} and {transaction_date}.

API Endpoint   https://rates.example.com/{transaction_date}
Parameters     base = {from_currency}, symbols = {to_currency}
Result Key     rates, {to_currency}

Pegged Currencies

The Pegged Currency Details table lists a Currency, Pegged Against and Exchange Rate. A migration fills an empty table with ERPNext's pegs to USD for AED, BHD, JOD, OMR, QAR and SAR. A row with no rate is ignored.

Exchange Rate Revaluation

Foreign balances drift as rates move. An Exchange Rate Revaluation restates them at the rate on its Posting Date and books the unrealized gain or loss.

Set Company and Posting Date, then click Get Entries. ERP fills the Exchange Rate Revaluation Account table with one row per foreign-currency balance sheet account, and per party on receivable and payable accounts. Stock accounts are left out.

Check New Exchange Rate on each row. Saving computes New Balance In Base Currency, Gain/Loss and the totals.

Submit. Rows with no gain or loss are dropped.

Use Journal Entries to make draft journals that book the total to the company's Unrealized Exchange Gain/Loss Account. Reversal Journal Entries makes their draft reversals, dated today.

Acme Traders (INR) has 1,000 USD owed by a US customer, booked at 82. On 2026-11-30 the rate is 84.

AccountPartyBalance In Account CurrencyCurrent Exchange RateNew Exchange RateBalance In Base CurrencyNew Balance In Base CurrencyGain/Loss
Debtors USD - ATGlobex Inc1,000828482,00084,0002,000

A row marked Zero Balance has a balance in one currency only. Its amount counts in Gain/Loss already booked and goes to a separate Exchange Gain Or Loss journal. Other rows count in Gain/Loss from Revaluation.

Rules on save and submit:

  • Rounding Loss Allowance must be at least 0 and below 1. It defaults to 0.05.
  • Get Entries needs Company and Posting Date.
  • A receivable or payable row needs Party Type and Party.
  • Submit needs at least one row with a gain or loss.

Automatic revaluation

On the Company, check Auto Create Exchange Rate Revaluation and pick a Frequency. A daily job revalues each company whose frequency is due: Daily every day, Weekly on Sundays, Monthly on the 1st. It submits a revaluation dated today with no rounding allowance and makes its draft journals. With Submit ERR Journals? checked, it submits the journals too. A company with no gain or loss gets nothing.

See General ledger for how the journals post, and Payments for realized gains on payment.

On this page