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.
4 changes: 4 additions & 0 deletions data/schemas/tax/addon-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
"const": "gr-mydata-v1",
"title": "Greece MyData v1.x"
},
{
"const": "hr-eracun-v1",
"title": "Croatia eRačun (HR CIUS 2025)"
},
{
"const": "it-sdi-v1",
"title": "Italy SDI FatturaPA v1.x"
Expand Down
Loading