Skip to content

Bundle the hr-eracun-v1 addon and the HR CIUS UBL format from gobl.hr.eracun - #78

Draft
XiaoY-X wants to merge 1 commit into
mainfrom
eu3-18-hr-bundle
Draft

XiaoY-X wants to merge 1 commit into
mainfrom
eu3-18-hr-bundle

Conversation

@XiaoY-X

@XiaoY-X XiaoY-X commented Nov 19, 2026 •

Copy link
Copy Markdown

Part of EU3-18

Things Added

Croatian eRačun add-on and format in the bundle
Blank imports of github.com/invopop/gobl.hr.eracun/addon and github.com/invopop/gobl.hr.eracun/ubl in bundle/bundle.go. The first loads the hr-eracun-v1 addon, so silo, the builder and the CLI can validate and sign documents declaring it. The second registers the ubl+hr-eracun-v1 format (HR CIUS 2025 with the national extension, invoices and credit notes, and the rejection application response), for gobl convert, the API and silo's conversions.

Editor example
editor/examples/hr-eracun.json, a Croatian B2B invoice with the operator, the business process and a KPD classification. TestExamplesCoverFormats needs an example for every format that exports invoices. Exported through this bundle as ubl+hr-eracun-v1, it passes the Tax Administration's rule set hr.gov.porezna.eracun:ubl-invoice:1.0.4 in phorm 2.2.11 with no errors, and imports back as the same format.

README
The module's row in the converters table.

This does not build yet

gobl.hr.eracun has no tag, so go.mod pins the head of its first pull request (invopop/gobl.hr.eracun#1, cd242dd) as a pseudo-version, v0.0.0-20261117192922-cd242dd8584f.

That module needs code that is not released:

It reaches them through a replace block in its own go.mod, which does not apply to modules that import it. Against GOBL v0.512.0 this branch therefore fails to compile (no required module provides package github.com/invopop/gobl/regimes/hr), go mod tidy fails the same way, and CI is red. That is expected until the chain below lands.

The same commit builds and passes the whole suite on the staging branch #79, which adds one commit pinning gobl, gobl.ubl and gobl.hr.eracun to integration branches.

TODO Before Merging

Checks

Run on the staging branch, where it builds (Go 1.26.2): go test -race ./... passes, golangci-lint run ./... reports 0 issues. On this branch only go mod verify and gofmt were run.

🤖 Generated with Claude Code

….eracun

Blank imports of gobl.hr.eracun/addon and gobl.hr.eracun/ubl, which
registers ubl+hr-eracun-v1, with a Croatian eRačun example for the editor.

gobl.hr.eracun is pinned to the head of its first pull request until the
module is tagged. It needs the hr regime and gobl.ubl fields that are not
released yet, so this does not build against GOBL v0.512.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant