Payment order and currency purchase and sale
ua_bank is an ERPNext app for the bank operations of a company. It has two functions: the printed payment order and the records of buying and selling foreign currency. The payment is passed to the bank outside the app.
Note: The final decision rests with the enterprise's accountant.
The payment order
The form "Payment Order" is printed from a Payment Entry of the type Pay whose paid-from account is of the type Bank and in hryvnias. In the Print dialog you choose the format UA Payment Order. The form takes its data from documents already in the system.
| Block of the form | Where it comes from |
|---|---|
| Number and date | the name and the posting date of the payment, the month in words |
| Payer | the legal name with the legal form, the code, the IBAN and the bank |
| MFO | the branch code of the bank; when it is missing, the six digits of a Ukrainian IBAN after the check digits |
| Payee | the name, the tax code and the bank account of the party |
| Amount | in figures and in words: hryvnias in words, kopecks as two digits |
| Purpose of payment | the remarks of the payment, or the numbers of the documents of the references table |
The payer's account is picked in this order: the account of the payment, the bank account of the paid-from account, the main account of the company, its default account, other enabled accounts: the first one in the currency of the payment is taken, and when there is none, the first usable one. The value date and the marks of the bank stay empty.
When a value is missing, the form leaves an empty line and shows a line "Not filled in: ..." above it with a list: the code, the account and the bank of the payer or the payee, the purpose. For a payment that does not fit, a message is printed: the payment is not of the type Pay, the paid-from account is not a bank account, or the currency is not the hryvnia.
The list of the requisites of the form is point 37 and the appendix of the instruction of the National Bank on non-cash settlements in the national currency; the order of the blocks is set in the app. The signature lines of the payer stay empty, and for a payee with no tax number the code stays empty and the form warns about it.
Buying and selling currency
The deal is made with a Payment Entry of the type Internal Transfer between a hryvnia and a foreign currency bank account. The currency account keeps its books in its own currency, and its value in hryvnias is the amount in currency at the NBU rate of the date. The hryvnia side has the rate 1, and its amount is what the bank took or paid at its own rate. The difference of the two amounts is the difference of the purchase or sale.
ERPNext itself adds this difference as a row of the table "Payment Deductions or Loss", and the app only chooses the account by the sign:
| Deal | Difference | Entry |
|---|---|---|
| purchase, paid more than the NBU rate | loss | Dr 942 |
| purchase, paid less | profit | Cr 711 |
| sale, received more | profit | Cr 711 |
| sale, received less | loss | Dr 942 |
For 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 costs at the NBU rate, so the difference goes to the debit of the account 942, and the currency account gets the value at the NBU rate. This happens for an internal transfer between two currencies in a company on the Ukrainian chart of accounts. The rate comes from the Currency Exchange records that the NBU job creates or that are entered manually. The revaluation of balances at the month end is done by the standard ERPNext "Exchange Rate Revaluation".
The accounts of the difference
The difference of buying and selling goes to a pair of sub-accounts of the Instruction on the Chart of Accounts (order of the Ministry of Finance of 30.11.1999 No. 291): 711 "Дохід від купівлі-продажу іноземної валюти" and 942 "Витрати на купівлю-продаж іноземної валюти". The accounts 714 and 945 are meant for the operating exchange rate difference from a change of the rate, that is, for the revaluation of balances.
The deal as a Journal Entry
The same deal can 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. The difference is visible in the General Ledger on the accounts 711 and 942. The bank fee, the mandatory sale of currency and the purchase through a broker are recorded as separate entries.
What this means
A hryvnia payment can be printed as a payment order with the requisites taken from the documents of the system and a warning about the fields left empty, and a purchase or sale of currency can be split into the value at the NBU rate and the difference on two separate accounts. The payment is passed to the bank outside the app.
More in the documentation: Payment order and Buying and selling foreign currency.