# Calculate an exchange rate difference

> Calculate the exchange rate difference that arises when a foreign currency invoice is matched with a payment, for a customer or a vendor, read why rows are not invoiced, and issue the exchange rate difference invoice for a difference in our favor.

URL: https://erpdocs.corexlogic.com/en/finans/islemler/kur-farki-hesaplama

- **Type:** Task
- **Module:** Finance
- **Menu path:** Finans › Giden Ödemeler › Satıcı Kur Farkı Hesapla · Finans › Gelen Ödemeler › Müşteri Kur Farkı Hesapla (Finance › Outgoing Payments › Calculate Vendor Exchange Difference · Finance › Incoming Payments › Calculate Customer Exchange Difference)
- **Screen route:** `/erp/payables/exchange-differences/new · /erp/receivables/exchange-differences/new`
- **Required permission:** `erp-payables-ledger.create (satıcı tarafı) · erp-receivables-ledger.create (müşteri tarafı) — hesaplama oluşturma ve iptal`, `erp-invoicing-invoices.create (kur farkının e-Belgesi)`
- **Prerequisites:**
  - The foreign currency invoice has been matched with its payment — for a vendor, a recorded incoming invoice × outgoing payment; for a customer, an outgoing invoice issued by CoreX × incoming payment.
  - The central bank (TCMB) buying rate of the payment day (and, for an invoice without a rate, of the invoice day) exists in **Döviz Kurları** (Exchange Rates).
  - A sellable, active service card that does not keep stock (e.g. Kur Farkı) has been opened to serve as the invoice item.

When a foreign currency invoice is paid on a later day, an **exchange rate difference** arises between the invoice
rate and the payment day rate. You issue the exchange difference invoice for a difference in your favor; one against
you is the other party's invoice. The calculation is the basis of the invoice to be issued: it keeps which invoice was
matched with which payment, at which rates, and the VAT share of the difference. The customer and vendor sides work
with the same screen; only their place in the menu, their permissions and the direction of the difference differ. The
calculation writes no entry, so the matches of a closed month can also be calculated; the posting period gate is
applied to the date of the invoice.

## Steps

1. For the vendor side, open **Finans › Giden Ödemeler › Satıcı Kur Farkı Hesapla** (Finance › Outgoing Payments › Calculate Vendor Exchange Difference); for the customer side, **Finans › Gelen Ödemeler › Müşteri Kur Farkı Hesapla** (Finance › Incoming Payments › Calculate Customer Exchange Difference). If you are on the list, click **Kur Farkı Hesapla** (Calculate Exchange Difference) in the title.
   <!-- action: navigate · target: "/erp/payables/exchange-differences/new" · expect: "The Eşleşme aralığı (Matching range) is the previous month, the Belge tarihi (Document date) is the last day of the range; the proposal table fills" -->
2. Check the **Eşleşme başlangıcı** (Matching start) and **Eşleşme bitişi** (Matching end). The range refers to the day the payment was matched with the invoice.
   <!-- action: fill · target: "Eşleşme başlangıcı" · value: "01.10.2026 – 31.10.2026" -->
3. Enter the **Belge tarihi** (Document date): it cannot be before the end of the range or after today.
   <!-- action: fill · target: "Belge tarihi" · value: "31.10.2026" -->
4. To search for a business partner account, type the code or name in **Ara** (Search) and press `Enter`.
   <!-- action: fill · target: "Ara" -->
5. Click the arrow to the left of an account row to open the matches: the invoice and payment rate, the matched foreign currency amount, the exchange difference and its VAT share, or the row's problem.
   <!-- action: open · target: "Eşleşmeleri göster" -->
6. Check the accounts to be invoiced. Accounts that have a difference in our favor are checked from the start; the box of an account that has no difference to invoice is disabled. **Tümünü Seç** (Select All) and **Seçimi Temizle** (Clear Selection) can also be used.
   <!-- action: choose · target: "hesap seçim kutusu" -->
7. Click **Hesaplama Oluştur (N)** (Create Calculation (N)) at the bottom.
   <!-- action: click · target: "Hesaplama Oluştur" · expect: "N kur farkı hesaplaması oluşturuldu — e-Belgesini hesaplamanın sayfasından kesin. (N exchange difference calculations created — issue its e-Document from the calculation's page.)" -->
8. Click the **KFH-…** number in the result to open the calculation and click **e-Belge Oluştur** (Create e-Document).
   <!-- action: click · target: "e-Belge Oluştur" · expect: "The e-Belge Oluştur (Create e-Document) dialog" -->
9. Enter the **Fatura tarihi** (Invoice date) and select the exchange difference service card as the **Fatura kalemi** (Invoice item).
   <!-- action: select · target: "Fatura kalemi" -->

   ![Customer exchange difference calculation](https://erpdocs.corexlogic.com/en/en/img/screens/finans/kur-farki-olustur.png)
   1. Clearing period
   2. In our favour — an invoice is issued
   3. Against us — shown only

10. Click **Taslak Fatura Oluştur** (Create Draft Invoice).
   <!-- action: click · target: "Taslak Fatura Oluştur" · expect: "A draft outgoing invoice opens" -->

**Result:** The calculation is **Etkin** (Active) with the number **KFH-yyyy-nnnnnn**; its matches are not proposed to another calculation. Finalize and send the resulting **draft** exchange rate difference invoice on the invoice screen ([Issue an invoice](https://erpdocs.corexlogic.com/en/finans/islemler/fatura-kesme)); the calculation's **e-Belge** (e-Document) field is linked to the invoice.

## What you need to know

### Calculating the difference

The calculation is on the server; the screen does not multiply or add rates. For each **match** (invoice × payment):

| Side | Exchange difference | Positive difference |
|---|---|---|
| Customer | matched foreign currency amount × (collection day rate − invoice rate) | The rate rose on the collection day: in our favor, we issue the invoice to the customer. |
| Vendor | matched foreign currency amount × (invoice rate − payment day rate) | The rate fell on the payment day: in our favor, we issue the invoice to the vendor. |

- The **invoice rate** is the invoice's own rate; if the invoice has no rate, the TCMB buying rate of the invoice day.
  The **payment rate** is the TCMB buying rate of the payment day. Rates are read from the **Döviz Kurları** (Exchange
  Rates) table; a manually entered rate overrides the TCMB rate ([Exchange rates](https://erpdocs.corexlogic.com/en/finans/ekranlar/doviz-kurlari)).
- The difference is in TRY, rounded to two decimals, and counted as **VAT-inclusive**. It is split among the VAT rates of
  the original invoice by their shares in the amount payable: tax base = share ÷ (1 + rate), VAT = share − tax base;
  the last rate takes the rounding remainder.
- If the difference is zero, no row appears. A negative difference is **against us**: the row says "(aleyhimize)"
  (against us) and is not invoiced.
- On a **sale with withholding**, the difference is the part the customer pays, and the exchange difference invoice is
  issued with the original invoice's withholding code; the **Tevkifat** (Withholding) column and the **Tevkif
  edilecek KDV** (VAT to be withheld) field appear in the detail.

> **Calculation example**
Vendor side, incoming invoice of 1,000.00 USD with 20% VAT: invoice rate 41.0000, payment day rate 40.5000.
Exchange difference = 1,000.00 × (41.0000 − 40.5000) = **500.00 TRY in our favor**; tax base 500.00 ÷ 1.20 = 416.67,
VAT 83.33. An exchange difference invoice of 416.67 + 83.33 TRY is issued to the vendor.

Which matches are included: **invoice × payment** matches in a currency other than TRY that were matched in the range
and not undone — it does not matter whether they were matched with the payment immediately or manually later. The
matches of an opening item, memo, return invoice, business partner account transfer and an external platform invoice
(invoice reference) do not produce an exchange difference.

### The proposal table

A row is per **account** (business partner × currency).

| Column | Description |
|---|---|
| (checkbox) | The account for which the calculation will be created; enabled only on an account that has a difference in our favor to be invoiced. At most 200 at a time. |
| (arrow) | Shows or hides the matches. |
| Müşteri / Satıcı · Döviz (Customer / Vendor · Currency) | |
| Eşleşme (Matches) | The account's number of matches. |
| Lehimize (KDV dahil) (In our favor (VAT incl.)) | The total of the problem-free rows with a positive difference — the amount to be invoiced. |
| Aleyhimize (Against us) | The total of the negative differences — shown only. |
| Sorunlu (With problems) | The number of rows that are not invoiced (red). |

The match table that opens: **Fatura** (Invoice) (no · date), **Fatura kuru** (Invoice rate), **Ödeme** (Payment) (on
the customer side **Tahsilat** (Collection); no · date), **Ödeme kuru** (Payment rate), **Eşleşen** (Matched)
(foreign currency), **Kur farkı** (Exchange difference), **KDV payı / sorun** (VAT share / problem) (e.g. "%20: 416,67
TRY + 83,33 TRY" or the sentence of the problem). Rates are written with at least four decimals; one with no rate says
"kur yok" (no rate).

If there is no foreign currency match in the range at all, it says "Bu aralıkta kur farkı doğuran dövizli eşleşme yok."
(There is no foreign currency match that produces an exchange difference in this range.)

### Rows that are not invoiced

The difference of a problem row does not enter the calculation; the reason is written on the row.

| Message on the row | Cause and solution |
|---|---|
| "Ödeme faturadan önce (avans) — kur farkı doğmaz." (The payment is before the invoice (advance) — no exchange difference arises.) | The payment day is before the invoice. An advance has no exchange difference. |
| "Faturanın kuru bilinmiyor." (The invoice's rate is not known.) | The invoice has no rate and there is no TCMB rate for the invoice day. Enter that day's rate in **Döviz Kurları** and refresh the proposal. |
| "… için … kuru yok — Döviz Kurları'ndan girin." (There is no … rate for … — enter it from Exchange Rates.) | There is no rate for the payment day. Enter the rate and refresh. |
| "Kur farkı hesaplamasında: KFH-…." (In exchange difference calculation: KFH-….) | The match is in an active calculation. To recalculate, cancel that calculation. |
| "İhracat — kur farkı faturası düzenlenmez (istisna kapsamında); fark kambiyo kârı/zararı olarak kalır." (Export — no exchange difference invoice is issued (within the scope of the exemption); the difference remains as a foreign exchange gain/loss.) | An export invoice on the customer side. The difference is left to the period-end foreign currency valuation. |
| "Tevkifatlı alış faturası — kur farkı faturasını elle kesin." (Purchase invoice with withholding — issue the exchange difference invoice manually.) | An incoming invoice with withholding on the vendor side. Issue the invoice manually on your accountant's decision. |
| "KDV'siz (istisnalı) kalem var — kur farkı faturasını elle kesin." (There is a VAT-free (exempt) item — issue the exchange difference invoice manually.) | The original invoice has a VAT-free line. |
| "Faturanın kalemi yok." · "Asıl fatura bulunamadı." (The invoice has no items. · The original invoice was not found.) | The original invoice could not be read. |

A **difference against us** comes with the exchange difference invoice issued by the other party. When recording that
invoice in incoming invoices, check the **Kur farkı faturası** (Exchange difference invoice) checkbox: it does not enter
the subledger, and its entry separates the VAT from the loss (191 / 656) ([Record an incoming invoice](https://erpdocs.corexlogic.com/en/finans/islemler/gelen-faturayi-kaydetme)).

### The calculation and the invoice

- **Hesaplama Oluştur** (Create Calculation) recalculates the proposal on the server; an account among the selected ones
  that has no difference left to invoice is skipped and listed in the result with its reason ("Bu aralıkta kur farkı
  yok." (There is no exchange difference in this range.) · "Faturalanacak lehte kur farkı yok." (There is no
  exchange difference in our favor to invoice.)). Clicking the button twice does not open two calculations.
- A calculation is the state of the matches on that day and does not change; a match is included in only one active
  calculation.
- **e-Belge Oluştur** (Create e-Document) dialog: the **Fatura tarihi** cannot be before the calculation's document date
  and a closed month is not offered; the **Fatura kalemi** is a sellable, active service card. **Taslak Fatura
  Oluştur** opens a TRY sales invoice as a **draft**; the recipient is the calculation's business partner card (on the
  vendor side, the vendor). On the invoice there is one line per original invoice, VAT rate and withholding code:
  quantity 1, unit price the tax base, description "Kur farkı — fatura no (tarih, kur …): eşleşen tutar, ödeme kuru …"
  (Exchange difference — invoice no (date, rate …): matched amount, payment rate …).
- A calculation has only one active invoice (including a draft). If the invoice is deleted or becomes void, the
  calculation can be invoiced again.
- **İptal Et** (Cancel) only on an active calculation that has no invoice, with a reason: "İptal edilen hesaplamanın
  eşleşmeleri serbest kalır ve sonraki hesaplamada yeniden önerilir." (The matches of a cancelled calculation are
  released and proposed again in the next calculation.) To cancel a calculation that has an invoice, first delete the
  invoice or make it void.
- The default range is the previous month: the exchange difference invoice is usually issued at month-end, in bulk, for
  the month's matches.

### Accounting effect

The calculation writes no entry. When the exchange difference invoice is finalized, its entry separates **only the
VAT**: debit **646 Kambiyo Kârları** (Foreign Exchange Gains) / credit **391 Hesaplanan KDV** (Calculated VAT). The
invoice does not enter the business partner subledger — the difference itself was already realized in the TRY balance
of the business partner account with the payment, and the period-end foreign currency valuation moves it to 646
([Perform a foreign currency valuation](https://erpdocs.corexlogic.com/en/finans/islemler/kur-degerlemesi-yapma)).

### Common messages

| Message | Cause and solution |
|---|---|
| "Eşleşme aralığının başlangıç ve bitişini girin." · "Bitiş tarihi başlangıçtan önce olamaz." (Enter the start and end of the matching range. · The end date cannot be before the start.) | Correct the range. |
| "Aralık en çok 366 gün olur." · "Aralık bugünden sonra bitemez." (The range can be at most 366 days. · The range cannot end after today.) | Shorten the range or end it today. |
| "Belge tarihi bugünden sonra olamaz." · "Belge tarihi eşleşme aralığının sonundan önce olamaz." (The document date cannot be after today. · The document date cannot be before the end of the matching range.) | Select the document date between the last day of the range and today. |
| "En az bir hesap seçin." · "Bir seferde en çok 200 hesaplama oluşturulur." (Select at least one account. · At most 200 calculations are created at a time.) | Correct the selection. |
| "Fatura günü hesaplamanın tarihinden önce olamaz." (The invoice day cannot be before the calculation's date.) | Set the invoice date to the calculation's document date or later. |
| "Fatura kalemi olacak hizmet kartını seçin." · "Kur farkının fatura kalemi satılabilir, aktif bir hizmet kartı olmalı." (Select the service card that will be the invoice item. · The invoice item of the exchange difference must be a sellable, active service card.) | Select an active, sellable service card that does not keep stock. |
| "… hesaplamasının e-Belgesi zaten var (taslak dâhil)." (The e-Document of the calculation … already exists (including draft).) | The calculation already has an invoice. Go to the invoice from the **e-Belge** field. |
| "'…' tevkifat kodu tanımlı değil — asıl faturanın kodunu Tevkifat Kodları'na ekleyin." (The withholding code '…' is not defined — add the original invoice's code to Withholding Codes.) | The code of the sale with withholding is not in the definitions. |
| "İptal edilmiş hesaplamanın e-Belgesi kesilmez." (No e-Document is issued for a cancelled calculation.) | The calculation is cancelled. |
| "Hesaplamanın e-Belgesi var — önce faturayı silin ya da hükümsüz kılın." (The calculation has an e-Document — first delete the invoice or make it void.) | A calculation with an invoice cannot be cancelled. |
| "İptal gerekçesi zorunludur." · "Hesaplama zaten iptal edilmiş." (A cancellation reason is required. · The calculation has already been cancelled.) | |
| "Hesaplama başka biri tarafından değiştirildi; sayfayı yenileyin." (The calculation was changed by someone else; refresh the page.) | Concurrent change. |

## Related

- [Outgoing payments](https://erpdocs.corexlogic.com/en/finans/ekranlar/giden-odemeler) — the Vendor Exchange Differences list and its detail
- [Incoming payments](https://erpdocs.corexlogic.com/en/finans/ekranlar/gelen-odemeler) — Customer Exchange Differences
- [Exchange rates](https://erpdocs.corexlogic.com/en/finans/ekranlar/doviz-kurlari) · [Perform a foreign currency valuation](https://erpdocs.corexlogic.com/en/finans/islemler/kur-degerlemesi-yapma)
- [Outgoing e-Invoices](https://erpdocs.corexlogic.com/en/finans/ekranlar/giden-e-faturalar) · [Issue an invoice](https://erpdocs.corexlogic.com/en/finans/islemler/fatura-kesme)
