Buying and selling foreign currency
Who it is for: an accountant who records a purchase or a sale of foreign currency through a bank. Result: a Payment Entry of the type Internal Transfer between a hryvnia and a foreign currency bank account, with the difference of the deal on the account 942 or 711.
Note: The final decision rests with the enterprise's accountant.
How it is recorded
A purchase or a sale of currency through a bank is a Payment Entry of the type Internal Transfer between a bank account in hryvnias and a bank account in the foreign currency:
- the foreign account is kept in its currency; its value in hryvnias is the foreign amount at the NBU rate of the date;
- the hryvnia side has the rate 1; its amount is what the bank took (a purchase) or paid (a sale), that is the deal at the rate of the bank;
- the difference of the two amounts in hryvnias is the difference of the buying and selling.
The NBU rate of the date is a stored Currency Exchange record: the NBU rates job of the localization app creates it, or it is entered manually.
ERPNext itself adds the difference of such a payment as a row of the table "Payment Deductions or Loss" on the single exchange gain and loss account of the company. The app changes the account of that row by the sign of the difference. This happens when an Internal Transfer between two currencies is saved for a company that has the Ukrainian chart of accounts applied.
| Deal | Hryvnias against the NBU value of the currency | Difference | Entry |
|---|---|---|---|
| purchase | paid more | loss | Dr 942 |
| purchase | paid less | gain | Cr 711 |
| sale | received more | gain | Cr 711 |
| sale | received less | loss | Dr 942 |
Example: the NBU rate of the day is 41.00 and the bank sold the currency at 41.10. The company paid more than the currency is worth at the NBU rate, so the difference is a loss and goes to the debit of the account 942. The currency account receives the value at the NBU rate.
Which accounts
- 711 "Дохід від купівлі-продажу іноземної валюти" (income) and 942 "Витрати на купівлю-продаж іноземної валюти" (expense): by the Instruction on the Chart of Accounts (order of the Ministry of Finance of 30.11.1999 No. 291) these are the sub-accounts for the difference between the price of buying or selling and the book value.
- 714 and 945 are meant for the operating exchange rate difference from a change of the rate (the revaluation of balances). The revaluation of balances at month end is done by the standard "Exchange Rate Revaluation" of ERPNext.
The same entry as a Journal Entry
A deal can also be recorded as one multi-currency Journal Entry of the type Bank Entry: a line in the foreign currency at the NBU rate, a line in hryvnias and a line of the difference account. The app has functions for it that are meant for a script, a console or another app: they create a draft and submit it when asked.
Where the result is visible
The difference is visible in the General Ledger on the accounts 711 and 942. The bank commission, the mandatory sale of currency and the purchase through a broker are recorded as separate entries. The form for printing a payment order in hryvnias is described on the page Payment order.
Basis
The Instruction on the application of the Chart of Accounts (order of the Ministry of Finance of 30.11.1999 No. 291): the sub-accounts 711 and 942.

