Record an exchange gain or loss on payment
When a customer pays a foreign-currency invoice at a different rate from the invoice, the company-currency values differ. The difference is a realized exchange gain or loss. ERPNext posts it to the company's Exchange Gain / Loss Account.
Example: a EUR 1,200 invoice at 1.10 is worth USD 1,320. The customer pays EUR 1,200 when the rate is 1.15, and the bank receives USD 1,380.
| Event | EUR | Rate | USD |
|---|---|---|---|
| Invoice | 1,200 | 1.10 | 1,320 |
| Payment | 1,200 | 1.15 | 1,380 |
| Realized gain | 60 |
The EUR receivable becomes zero. The USD 60 is a gain. For a supplier payment, the direction is the reverse.
For balances that are still open at a reporting date, use Exchange Rate Revaluation instead.
Prerequisites
- Multi-currency setup is done. See Set up multi-currency accounting.
- The company has an Exchange Gain / Loss Account. If it is empty, ERPNext asks for an account.
- In Accounts Settings, Posting Date inheritance for exchange gain / loss (Invoice, Payment, or Reconciliation Date) sets the date of the gain or loss entry.
Record the payment
- On the submitted invoice, select Create > Payment.
- Check the Payment Type, company, and party.
- Check Account Paid From and Account Paid To. Their currencies set the amount fields.
- Enter the actual amounts, and the exchange rate of the payment date.
- Check the invoice and the allocated amount in Payment References. The Exchange Gain/Loss column of each row shows the difference between the invoice rate and the payment rate.
- Check that Difference Amount (Company Currency) is zero.
- Submit. ERPNext posts the exchange gain or loss of each reference row in a separate Journal Entry, and shows a link to it.
ERPNext also adds a row to Payment Deductions or Loss in one other case. When Account Paid From and Account Paid To use different currencies, and the two company-currency amounts differ, ERPNext puts that difference on the exchange gain or loss account. In the example above, both sides are worth USD 1,380, so ERPNext adds no deduction row. The USD 60 goes to the Journal Entry.
Keep other differences apart
| Difference | Account |
|---|---|
| Rate change between invoice and payment | Exchange gain or loss |
| Fee charged by the bank | Bank charges, or another expense account |
| Short payment that you will not collect | Write-off, if your policy allows |
| Tax withheld by the customer | The tax withholding account |
| Rounding | Round off |
Add a separate deduction row for each. Do not book a bank fee as an exchange loss.
Check the result
- The invoice outstanding amount is zero or reduced.
- The foreign receivable or payable is cleared by the foreign amount.
- The bank shows the amount on the statement.
- The exchange gain or loss account holds only the rate difference.
- The General Ledger balances in the company currency.
Partial payments and advances
- Each partial payment uses its own rate and realizes its own difference. Do not change the invoice rate.
- When one payment settles several invoices, check each reference.
- An advance keeps the rate of its payment date. When you allocate it to an invoice later with Payment Reconciliation, ERPNext can post an exchange difference, dated by the posting-date setting.
Troubleshooting
A small amount stays outstanding after full payment
Check the allocated amount, the party account currency, the payment rate, and the Exchange Gain/Loss column in Payment References.
The bank amount is wrong after adding a deduction
Start from the bank statement amount. Put fees, withholding, write-offs, and the exchange difference on separate rows.
No exchange gain or loss Journal Entry is created
The payment rate is the same as the invoice rate, so the Exchange Gain/Loss column is zero. Check the rates in Payment References.