# Fiscal years and account determination

> Administration › Customization › Finance — opening a fiscal year and monitoring periods; the rules that select the accounts of the automatic journal entry, valuation classes, the inventory account of the item type (150, 151, 152, 153) and Sına (Test).

URL: https://erpdocs.corexlogic.com/en/finans/ekranlar/mali-yillar-ve-hesap-belirleme

- **Type:** Screen
- **Module:** Finance
- **Menu path:** Yönetim › Özelleştirme › Finans › Mali Yıllar ve Dönemler · Hesap Belirleme (Administration › Customization › Finance › Fiscal Years and Periods · Account Determination)
- **Screen route:** `/erp/accounting/fiscal-years`
- **Required permission:** `erp-accounting-fiscal-years.view (görme) · .create (Mali Yıl Aç)`, `erp-accounting-account-determination.view (kurallar, değerleme sınıfları, Sına) · .edit (kural, değerleme sınıfı, ürün türü ataması)`

Both screens are the setup of accounting and sit under **Yönetim › Özelleştirme › Finans** (Administration › Customization › Finance). **Mali Yıllar ve Dönemler** (Fiscal Years and Periods) determines which years can be posted to, and **Hesap Belirleme** (Account Determination) determines which accounts the automatic journal entry of documents goes to. Both are part of the accounting integration: they are open in the Pre-Accounting and General Ledger packages.

## Mali Yıllar ve Dönemler (Fiscal Years and Periods)

**Yönetim › Özelleştirme › Finans › Mali Yıllar ve Dönemler** (`/erp/accounting/fiscal-years`) — "Takvim yılı: 12 dönem + kapanış için 4 özel dönem. Dönemi kapatmak ve açmak Kayıt Dönemleri'nde" (Calendar year: 12 periods + 4 special periods for closing. Closing and opening a period is in Posting Periods).

![Fiscal years and periods](https://erpdocs.corexlogic.com/en/en/img/screens/finans/mali-yillar.png)
1. Calendar year — 12 periods + 4 special
2. Special periods for closing
3. Open the next year

The top strip shows the closing status: "Kayıtlar 31.10.2026 dahil kapalı." (Postings are closed up to and including 31.10.2026.) or "Henüz kapatılmış dönem yok." (There is no closed period yet.) Next to it are the **Kayıt Dönemleri** (Posting Periods) link (with permission to view posting periods) and, with the `.create` permission, the **Açılacak mali yıl** (Fiscal year to open) list and the **Mali Yıl Aç** (Open Fiscal Year) button.

Each year is listed as a card: the year, the start – end day and "N/12 dönem kapalı" (N/12 periods closed). Under it are sixteen periods: **01 Ocak** (January) … **12 Aralık** (December) and **13–16 Özel dönem 1–4** (Special period 1–4); each has an **Açık** (Open) or **Kapalı** (Closed) badge.

### Opening a fiscal year

Select the year from the **Açılacak mali yıl** list and click **Mali Yıl Aç**. The year is opened with twelve monthly periods and four special periods; all periods are **Açık**.

- For the first year, the previous, current and next year are offered. After that, years are opened **contiguously**: only the year before the oldest year or the year after the newest year.
- A year is not deleted. A period is not closed here; month-end closing is done in **Finans › Dönem Sonu Kapanışı › Kayıt Dönemleri** (Finance › Period-End Closing › Posting Periods), and this screen only shows its result ([Period-end closing](https://erpdocs.corexlogic.com/en/finans/ekranlar/donem-sonu-kapanisi)).
- Special period 13 is for the year-end closing and period result entries (31.12).
- No entry is posted to a date whose year has not been opened; the accounting events of documents also wait in [Unposted accounting events](https://erpdocs.corexlogic.com/en/finans/ekranlar/muhasebelesmemis-olaylar) until the year is opened, and when the year is opened they are turned into journal entries with **Tümünü Yeniden Dene** (Retry All).

> **Accounting starts with the first fiscal year**
A document dated before the first day of the first fiscal year creates no journal entry; the balance of that day comes with the opening entry. A pending event that falls before this date is cancelled on retry. Balances of the transition day: [Pre-accounting opening](https://erpdocs.corexlogic.com/en/surecler/on-muhasebe-acilisi), [Opening from trial balance](https://erpdocs.corexlogic.com/en/veri-aktarimi/mizandan-acilis).

| Message | Cause and solution |
|---|---|
| "2026 mali yılı zaten açık." (The 2026 fiscal year is already open.) | The year already exists. |
| "Mali yıllar bitişik açılır: 2025 ya da 2027 açılabilir." (Fiscal years are opened contiguously: 2025 or 2027 can be opened.) | A year that leaves a gap was selected. |
| "Mali yıl 2000–2100 arasında olmalıdır." (The fiscal year must be between 2000 and 2100.) | |

## Hesap Belirleme (Account Determination)

**Yönetim › Özelleştirme › Finans › Hesap Belirleme** (`/erp/accounting/account-determination`) — "Kaynak belge işlem anahtarı bildirir, hesabı bu kurallar seçer — koşulları tutan en özel kural; kural yoksa olay muhasebeleşmeden bekler" (The source document reports a transaction key, and these rules select the account — the most specific rule that meets the conditions; if there is no rule, the event waits unposted).

![Account determination](https://erpdocs.corexlogic.com/en/en/img/screens/finans/hesap-belirleme.png)
1. Transaction key of the source document
2. Condition — the most specific rule wins
3. Stock account of the product type
4. Add a rule

A document (invoice, payment, stock movement …) reports its entry not with an account but with a **transaction key**: BSX inventory account, WRX goods-receipt clearing account, GBB inventory offset account, ERL sales revenue, MWS output VAT, VST input VAT, AR receivables, AP payables, PMT collection/payment account, RDF exchange rate and rounding difference, KDF exchange rate difference (valuation), and so on. The rules on this screen select which account it is written to. Ready-made rules based on the Uniform Chart of Accounts (Tek Düzen Hesap Planı) come with the installation.

The screen has three tabs: **Kurallar** (Rules) · **Değerleme Sınıfları** (Valuation Classes) · **Sına** (Test).

### Kurallar (Rules)

At the top of the tab there is the **İşlem anahtarı** (Transaction key) filter (**Tümü** — All) and, with the `.edit` permission, the **Kural Ekle** (Add Rule) button.

| Column | Description |
|---|---|
| **Alan** (Area) | The area of the key: Stok (Inventory), Satış (Sales), Vergi (Tax), Alt defter (Subledger), Nakit (Cash) … |
| **İşlem anahtarı** (Transaction key) | Code and name (e.g. **BSX Stok hesabı** — BSX Inventory account). |
| **Koşul** (Condition) | The rule's conditions: modifier (with code and name), **Sınıf 3000** (Class 3000), **Yurt içi** (Domestic) / **Yurt dışı** (Foreign), tax code. A rule without conditions is **Her durumda** (In every case). |
| **Hesap (borç)** (Account (debit)) | The account of the debit side. |
| **Alacak hesabı** (Credit account) | The account of the credit side; if empty, **Borçla aynı** (Same as debit). |
| **İşlem** (Action) | The **İşlemler** (Actions) menu: **Düzenle** (Edit) · **Sil** (Delete) (on the row with **Sil** / **Vazgeç** (Cancel) confirmation). |

If there is no rule for the filtered key, it shows "Bu anahtar için kural yok — olayı bekletir." (There is no rule for this key — it holds the event.)

**Rule selection.** For an event line, the **most specific** of the rules that meet the conditions is applied; the order of specificity is modifier › valuation class › business partner group › tax code. A rule with an empty condition matches every value of that condition. If no rule matches, the event is not turned into a journal entry and waits with its reason.

**The rule window** (**Kural Ekle** or **Düzenle**) — "İşlem anahtarı, koşullar ve hesap." (Transaction key, conditions and account.)

| Field | Description |
|---|---|
| **İşlem anahtarı** (Transaction key) | Required. Does not change when editing: "Anahtar kuralın kimliği — başka anahtar için yeni kural açın." (The key is the rule's identity — create a new rule for another key.) |
| **Değiştirici** (Modifier) · **Değerleme sınıfı** (Valuation class) · **İş ortağı grubu** (Business partner group) · **Vergi kodu** (Tax code) | Only the conditions recognized by the selected key are shown. **Hepsi** (All) = no condition. Business partner group **Yurt dışı** (Foreign): the card's tax ID is foreign or its country is outside Türkiye; other cards are **Yurt içi** (Domestic). |
| **Hesap** (Account) | Required. "Borç tarafı — alacak hesabı boşsa iki taraf da bu hesaba yazılır." (Debit side — if the credit account is empty, both sides are written to this account.) |
| **Alacak hesabı** (Credit account) | Empty = **Borçla aynı** (Same as debit); **Borçla aynı yap** (Make same as debit) empties the field. |

The rule's account must be an active main account or sub-account that is open for posting. If you later create a sub-account under the account that the rule points to, convert the rule to the sub-account; otherwise the events of that key wait with "… hesabının alt hesapları var — kayıt alt hesaba yazılır. Hesap Belirleme'deki kuralı düzeltin." (… the account has sub-accounts — the entry is written to the sub-account. Correct the rule in Account Determination.)

### Değerleme Sınıfları (Valuation Classes)

The valuation class is the key of the inventory account: "Stok hesabının anahtarı — 3000 ilk madde (150), 3100 ticari mal (153), 7900 yarı mamul (151), 7920 mamul (152)." (The key of the inventory account — 3000 raw materials (150), 3100 trading goods (153), 7900 semi-finished goods (151), 7920 finished goods (152).) The item's class comes **from the item type**; the BSX line of a stock movement is written to the inventory account by the class's rule.

The classes that come with the installation and the item type's default inventory account:

| Base type | Valuation class | Inventory account |
|---|---|---|
| **Hammadde** (Raw material) | 3000 İlk madde ve malzeme (Raw materials and supplies) | 150 |
| **Sarf malzemesi** (Consumable) | 3030 Yardımcı ve işletme malzemesi (Auxiliary and operating supplies) | 150 |
| **Yedek parça** (Spare part) | 3040 Yedek parça (Spare parts) | 150 |
| **Ambalaj** (Packaging) | 3050 Ambalaj malzemesi (Packaging material) | 150 |
| **Ticari mal** (Trading goods) | 3100 Ticari mal (Trading goods) | 153 |
| **Yarı mamul** (Semi-finished goods) | 7900 Yarı mamul (Semi-finished goods) | 151 |
| **Mamul** (Finished goods) | 7920 Mamul (Finished goods) | 152 |
| **Hizmet** (Service) | — | No inventory account |

**Valuation class table:** **Kod** (Code) · **Ad** (Name) · **Durum** (Status) · **İşlem** (Action; **Düzenle**). With the `.edit` permission, the **Değerleme Sınıfı** (Valuation Class) button creates a new class. The window: "Stok hesabını seçen anahtar; kod değişmez, silme yok — pasife alınır." (The key that selects the inventory account; the code does not change, there is no deletion — it is deactivated.) **Kod** is required (at most 8 letters or digits, locked when editing), **Ad** is required (at most 100 characters), and when editing there is an **Aktif** (Active) switch.

When you create a new class, add a rule for that class for the BSX key in the **Kurallar** tab; if there is no rule, the stock events of the items in that class wait with "'Stok hesabı' için hesap belirlenemedi (değerleme sınıfı …) — Hesap Belirleme'de kural tanımlayın." (No account could be determined for 'Inventory account' (valuation class …) — define a rule in Account Determination.) The other rules tied to the class are also selected by class: in the installation, cost of goods sold (GBB) is written to 620 for finished goods (7920), 621 for trading goods (3100) and 623 for the other classes.

**Item type valuation class table:** **Ürün türü** (Item type) · **Ad** (Name) · **Taban tür** (Base type) · **Değerleme sınıfı** (Valuation class). In the valuation class list, **Varsayılan (taban tür)** (Default (base type)) — the class in the table above — or one of the active classes is selected; the selection is **saved immediately** from the row. Next to a type that uses the default, **varsayılan** (default) is shown.

- To track the inventory of an item type in a separate account, give the type a separate class and write the BSX rule of that class.
- **The class of a type that has stock is not changed if it would shift the inventory account:** "Bu ürün türünde stoğu olan N kart var — değerleme sınıfını değiştirmek stok hesaplarını (15x) kaydırır: giriş eski hesapta, çıkış yenisinde kalırdı. …" (There are N cards with stock in this item type — changing the valuation class would shift the inventory accounts (15x): the receipt would stay in the old account, the issue in the new one. …) The stock of those cards must first be brought to zero.
- For the same reason, the item type of a card that has stock cannot be changed if it would shift the inventory account (e.g. from raw material to trading goods: 150 → 153). If the inventory account stays the same (from raw material to consumable, both 150), the change is free.

### Sına (Test)

The **Sına** tab asks without writing a rule: "which account is selected for this key and these conditions?" Select the **İşlem anahtarı** and the conditions (**Değiştirici**, **Değerleme sınıfı**, **İş ortağı grubu**, **Vergi kodu** — each **Yok** (None) or a value) and click **Sına**. The result is **Borç hesabı** (Debit account), **Alacak hesabı** (Credit account) and **Değerleme sınıfı**; if there is no rule, the reason is shown in red ("'…' için hesap belirlenemedi … — Hesap Belirleme'de kural tanımlayın." — No account could be determined for '…' … — define a rule in Account Determination.). Before resolving the reason of a pending event, try the rule here.

### Account Determination messages

| Message | Cause and solution |
|---|---|
| "Aynı işlem anahtarı ve koşullarla bir kural zaten var — onu düzenleyin." (A rule with the same transaction key and conditions already exists — edit it.) | A second rule with the same conditions is being created. |
| "Kuralın işlem anahtarı değişmez — yeni kural açın." (The rule's transaction key does not change — create a new rule.) | |
| "'…' bir başlık — kural ana ya da alt hesabı gösterir." ('…' is a heading — the rule points to a main account or sub-account.) · "'…' hesabı pasif." (Account '…' is inactive.) | The rule's account is not open for posting. |
| "'…' vergi kodu tanımlı değil." (Tax code '…' is not defined.) | The tax code condition is undefined. |
| "'…' değerleme sınıfı zaten var." (Valuation class '…' already exists.) | The code is in use. |
| "Değerleme sınıfı bulunamadı ya da pasif." (The valuation class was not found or is inactive.) | An attempt was made to assign an inactive class to the item type. |
| "Bu ürün türünde stoğu olan N kart var — …" (There are N cards with stock in this item type — …) | Above. |
| "Kayıt bu sırada değişti; yenileyip tekrar deneyin." (The record changed in the meantime; refresh and try again.) | Concurrent change. |

## Accounting effect

Opening a fiscal year writes no journal entry; it only makes posting possible. Changing an Account Determination rule does not change past entries: the new rule applies to events posted from then on, and pending events are turned into journal entries with the new rule when they are retried.

## Related

- [Unposted accounting events](https://erpdocs.corexlogic.com/en/finans/ekranlar/muhasebelesmemis-olaylar)
- [Chart of accounts](https://erpdocs.corexlogic.com/en/finans/ekranlar/hesap-plani) · [Journal entries](https://erpdocs.corexlogic.com/en/finans/ekranlar/yevmiye-fisleri)
- [Period-end closing](https://erpdocs.corexlogic.com/en/finans/ekranlar/donem-sonu-kapanisi) · [Month-end closing](https://erpdocs.corexlogic.com/en/finans/islemler/ay-kapanisi)
- [Pre-accounting opening](https://erpdocs.corexlogic.com/en/surecler/on-muhasebe-acilisi)
