Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions addons/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,12 @@ func init() {
},
Module: "github.com/invopop/gobl.ro.anaf",
})
tax.RegisterApprovedAddon(&tax.ExternalAddon{
Key: "hr-eracun-v1",
Name: i18n.String{
i18n.EN: "Croatia eRačun (HR CIUS 2025)",
i18n.HR: "Hrvatska eRačun (HR CIUS 2025)",
},
Module: "github.com/invopop/gobl.hr.eracun",
})
}
6 changes: 6 additions & 0 deletions addons/external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ func TestApprovedAddons(t *testing.T) {
"ro-efactura-v1": "github.com/invopop/gobl.ro.anaf",
},
},
{
name: "HR eRačun",
modules: map[cbc.Key]string{
"hr-eracun-v1": "github.com/invopop/gobl.hr.eracun",
},
},
}

for _, group := range groups {
Expand Down
3 changes: 3 additions & 0 deletions changes/unreleased/eu3-18-hr-external-addon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Added

- `addons`: approved `hr-eracun-v1` as an external addon implemented by [`github.com/invopop/gobl.hr.eracun`](https://github.com/invopop/gobl.hr.eracun), so it is now a valid `$addons` value.
14 changes: 14 additions & 0 deletions changes/unreleased/eu3-18-hr-regime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Added

- `hr`: added the Croatia tax regime, covering the 25% general rate and the 13% and
5% reduced rates of Article 38 of the VAT Act (NN 73/2013), plus normalization and
ISO 7064 MOD 11,10 validation of OIB tax codes and `OIB` identities. Rates are
dated from the Act's commencement on 1 July 2013, including the reduced rate's rise
from 10% to 13% on 1 January 2014.
- `hr`: added the `cash-basis` invoice tag for suppliers that apply the cash accounting
scheme of Article 125.i of the VAT Act. It adds the required "Obračun prema
naplaćenim naknadama" VAT note.
- `hr`: added the `PP` tax category for the consumption tax (porez na potrošnju), the
local tax on drinks served in catering establishments under the Local Taxes Act. Each
municipality sets its rate, up to 3%, so the category has no fixed rates and each tax
line gives its percent. The code is the one the Croatian eRačun specification uses.
260 changes: 260 additions & 0 deletions data/regimes/hr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
{
"$schema": "https://gobl.org/draft-0/tax/regime-def",
"name": {
"en": "Croatia",
"hr": "Hrvatska"
},
"description": {
"en": "Croatia's tax system is administered by the Tax Administration (Porezna\nuprava). Croatia is a member of the European Union and uses the euro, which\nreplaced the Croatian kuna (HRK).\n\nVAT (porez na dodanu vrijednost, PDV) is regulated by the VAT Act (Zakon o\nporezu na dodanu vrijednost). It applies at a general rate, with reduced\nrates for the goods and services listed in Article 38 of the Act.\n\nEvery legal and natural person in Croatia is assigned a personal\nidentification number (osobni identifikacijski broj, OIB): 10 digits\nfollowed by a check digit calculated with ISO 7064 MOD 11,10. The OIB is\nthe tax identification number, and the Croatian VAT number is the OIB with\nthe HR prefix (e.g. HR12345678903)."
},
"sources": [
{
"title": {
"en": "Porezna uprava - Porez na dodanu vrijednost (VAT)"
},
"url": "https://porezna-uprava.gov.hr/en/vat/7362",
"at": "2026-10-19T00:00:00"
},
{
"title": {
"en": "Narodne novine 60/2008 - Zakon o osobnom identifikacijskom broju"
},
"url": "https://narodne-novine.nn.hr/clanci/sluzbeni/2008_05_60_2033.html",
"at": "2026-10-19T00:00:00"
},
{
"title": {
"en": "Narodne novine 1/2009 - Pravilnik o osobnom identifikacijskom broju"
},
"url": "https://narodne-novine.nn.hr/clanci/sluzbeni/2009_01_1_6.html",
"at": "2026-10-19T00:00:00"
}
],
"time_zone": "Europe/Zagreb",
"country": "HR",
"currency": "EUR",
"tax_scheme": "VAT",
"tags": [
{
"schema": "bill/invoice",
"list": [
{
"key": "cash-basis",
"name": {
"en": "Cash accounting scheme",
"hr": "Postupak oporezivanja prema naplaćenim naknadama"
},
"desc": {
"en": "The supplier accounts for VAT when payment is received rather than\nwhen the invoice is issued, under Article 125.i of the VAT Act. The\nAct requires such invoices to state \"obračun prema naplaćenim\nnaknadama\", which this tag adds as a VAT note."
}
}
]
}
],
"identities": [
{
"code": "OIB",
"name": {
"en": "Personal Identification Number",
"hr": "Osobni identifikacijski broj"
}
}
],
"scenarios": [
{
"schema": "bill/invoice",
"list": [
{
"tags": [
"reverse-charge"
],
"cat": [
"VAT"
],
"note": {
"cat": "VAT",
"key": "reverse-charge",
"text": "Reverse charge: Customer to account for VAT to the relevant tax authority."
}
},
{
"tags": [
"cash-basis"
],
"cat": [
"VAT"
],
"note": {
"cat": "VAT",
"key": "cash-basis",
"text": "Obračun prema naplaćenim naknadama"
}
}
]
}
],
"categories": [
{
"code": "VAT",
"name": {
"en": "VAT",
"hr": "PDV"
},
"title": {
"en": "Value Added Tax",
"hr": "Porez na dodanu vrijednost"
},
"keys": [
{
"key": "standard",
"name": {
"en": "Standard"
}
},
{
"key": "zero",
"name": {
"en": "Zero"
}
},
{
"key": "reverse-charge",
"name": {
"en": "Reverse charge"
},
"no_percent": true
},
{
"key": "exempt",
"name": {
"en": "Exempt"
},
"no_percent": true
},
{
"key": "export",
"name": {
"en": "Export"
},
"no_percent": true
},
{
"key": "intra-community",
"name": {
"en": "Intra-community"
},
"no_percent": true
},
{
"key": "outside-scope",
"name": {
"en": "Outside scope"
},
"no_percent": true
}
],
"rates": [
{
"rate": "general",
"keys": [
"standard"
],
"name": {
"en": "General Rate",
"hr": "Opća stopa"
},
"values": [
{
"since": "2013-07-01",
"percent": "25.0%"
}
]
},
{
"rate": "reduced",
"keys": [
"standard"
],
"name": {
"en": "Reduced Rate",
"hr": "Snižena stopa"
},
"values": [
{
"since": "2014-01-01",
"percent": "13.0%"
},
{
"since": "2013-07-01",
"percent": "10.0%"
}
]
},
{
"rate": "super-reduced",
"keys": [
"standard"
],
"name": {
"en": "Super Reduced Rate",
"hr": "Super snižena stopa"
},
"values": [
{
"since": "2013-07-01",
"percent": "5.0%"
}
]
}
],
"sources": [
{
"title": {
"en": "Narodne novine 73/2013 - Zakon o porezu na dodanu vrijednost, članak 38"
},
"url": "https://narodne-novine.nn.hr/clanci/sluzbeni/2013_06_73_1451.html",
"at": "2026-10-19T00:00:00"
},
{
"title": {
"en": "Narodne novine 148/2013 - Zakon o izmjenama i dopunama Zakona o porezu na dodanu vrijednost"
},
"url": "https://narodne-novine.nn.hr/clanci/sluzbeni/2013_12_148_3138.html",
"at": "2026-10-19T00:00:00"
},
{
"title": {
"en": "Croatian Tax Administration - VAT",
"hr": "Porezna uprava - Porez na dodanu vrijednost"
},
"url": "https://porezna-uprava.gov.hr/en/vat/7362",
"at": "2026-10-19T00:00:00"
}
]
},
{
"code": "PP",
"name": {
"en": "PP",
"hr": "PP"
},
"title": {
"en": "Consumption Tax",
"hr": "Porez na potrošnju"
},
"desc": {
"en": "Local tax on drinks served in catering establishments, under the\nLocal Taxes Act. Each municipality or city decides whether to\ncharge it, and at what rate, up to 3%. It has no fixed rates, so\neach tax line gives its percent."
},
"sources": [
{
"title": {
"en": "Croatian Tax Administration - Consumption tax",
"hr": "Porezna uprava - Porez na potrošnju"
},
"url": "https://porezna-uprava.gov.hr/hr/porez-na-potrosnju-4768/4768",
"at": "2026-11-12T00:00:00"
}
]
}
]
}
83 changes: 83 additions & 0 deletions data/rules/hr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"id": "GOBL-HR",
"package": "hr",
"subsets": [
{
"id": "GOBL-HR-ORG-IDENTITY",
"object": "org.Identity",
"subsets": [
{
"guard": "context: regime in [HR]",
"subsets": [
{
"guard": "type in [OIB]",
"subsets": [
{
"field": "code",
"subsets": [
{
"guard": "present",
"assert": [
{
"id": "GOBL-HR-ORG-IDENTITY-01",
"desc": "Croatian OIB identity code must be 11 digits",
"tests": "matches ^\\d{11}$"
}
]
},
{
"guard": "present",
"assert": [
{
"id": "GOBL-HR-ORG-IDENTITY-02",
"desc": "Croatian OIB identity code failed the ISO 7064 MOD 11,10 checksum",
"tests": "checksum"
}
]
}
]
}
]
}
]
}
]
},
{
"id": "GOBL-HR-TAX-IDENTITY",
"object": "tax.Identity",
"subsets": [
{
"guard": "code in [HR]",
"subsets": [
{
"field": "code",
"subsets": [
{
"guard": "present",
"assert": [
{
"id": "GOBL-HR-TAX-IDENTITY-01",
"desc": "tax identity code for HR must be 11 digits",
"tests": "matches ^\\d{11}$"
}
]
},
{
"guard": "present",
"assert": [
{
"id": "GOBL-HR-TAX-IDENTITY-02",
"desc": "tax identity code for HR failed the ISO 7064 MOD 11,10 checksum",
"tests": "checksum"
}
]
}
]
}
]
}
]
}
]
}
Loading
Loading