Repository navigation
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Replace the Validator and Normalizer callbacks with registered rule sets for tax.Identity and org.Identity (11-digit format and ISO 7064 MOD 11,10 checksum), add the regime description, sources and invoice scenarios, date the rates from the VAT Act's commencement on 1 July 2013 with the reduced rate's rise from 10% to 13% on 1 January 2014, drop the local zero rate in favour of the global key, and regenerate the schema, rules and example data. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Suppliers that apply the cash accounting scheme (Article 125.i of the VAT Act) must state "obračun prema naplaćenim naknadama" on the invoice. The new `cash-basis` tag adds that text as a VAT note. The regime's invoice scenarios now extend the shared defaults instead of using them directly, so the reverse-charge note is unchanged. Part of EU3-18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of EU3-18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop separators and the HR prefix of the VAT number from OIB identity codes, so an OIB given as "HR 1234-5678-903" validates as 12345678903. Other letters are kept so that the checksum rule still flags them. Part of EU3-18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Consumption tax (porez na potrošnju) is a 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 PP is the one the Croatian eRačun specification uses (HR-TB-2).
The Croatian eRačun specification lists the packaging return fee (POVNAK), the special tax on motor vehicles (PPMV) and any other non-taxable fee (N) as pass-through items: amounts charged together with taxable items that are left out of the VAT base. Each is a money amount, not a rate on the price, so it is a line or charge of its own whose exempt VAT combo carries the new hr-pass-through extension. Declaring them in the regime instead of a format addon lets invoices to businesses and to consumers describe them the same way. The consumption tax is a pass-through item too, but it is a percentage of the items it applies to, so it keeps its own PP tax category. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in v0.512.0, whose extension tests ask every regime extension for an issuer-prefixed name and a usage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GOBL 0.512 asks every regime extension for a name prefixed with its issuer and a usage that names the regime. The codes come from the Tax Administration's eRačun specification, and the extension goes on tax combos of Croatian invoices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POVNAK, PPMV and N are codes of the eRačun HR tax category table (HR-TB-2), and B2C fiscalization reports them differently, so the addons declare them instead of the regime. The PP tax category stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Staging only: do not merge. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…uild Staging only: do not merge. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1045 +/- ##
==========================================
+ Coverage 96.93% 96.95% +0.02%
==========================================
Files 336 339 +3
Lines 15422 15526 +104
==========================================
+ Hits 14949 15053 +104
Misses 472 472
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Staging only. Do not merge, do not review as a change. This branch exists so that a staging build of the platform can run the Croatian eRačun flow before the release chain lands. It is closed once the releases below exist.
What it is
main(0487f2f6, v0.512.0 plus #1035) with two open pull requests merged in, nothing else:d8b87c99hrregimef4320550hr-eracun-v1on the approved external addon listBoth merged without conflicts. Head
3643129, pseudo-versionv0.512.1-0.20261118235559-364312914fee.Who pins it
The
eu3-hr-stagingbranches of gobl.hr.eracun, gobl.dev and silo. Please don't delete, rebase or force-push this branch while they pin it: the commit would become unreachable and their builds would fail.Checks on the head
go generate .: no changes.go test -race ./...: pass (Go 1.25.0).golangci-lint run ./...: 0 issues.How it goes away
#724 and #1044 merge to
mainand a GOBL release includes them. The dependents then pin that release and this pull request is closed without merging.🤖 Generated with Claude Code