Repository navigation
Conversation
….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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/addonandgithub.com/invopop/gobl.hr.eracun/ublinbundle/bundle.go. The first loads thehr-eracun-v1addon, so silo, the builder and the CLI can validate and sign documents declaring it. The second registers theubl+hr-eracun-v1format (HR CIUS 2025 with the national extension, invoices and credit notes, and the rejection application response), forgobl 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.TestExamplesCoverFormatsneeds an example for every format that exports invoices. Exported through this bundle asubl+hr-eracun-v1, it passes the Tax Administration's rule sethr.gov.porezna.eracun:ubl-invoice:1.0.4in 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.eracunhas no tag, sogo.modpins 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:
hrregime, Croatia regime gobl#724;It reaches them through a
replaceblock in its owngo.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 tidyfails 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
hrregimehr-eracun-v1approved) merged and GOBL released againgoblandgobl.ublto those releases,go mod tidygobl.devpin, sosilo.closeacceptshr-eracun-v1documentsChecks
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 onlygo mod verifyandgofmtwere run.🤖 Generated with Claude Code