regimes/cl: add Chile tax regime - #905
Open
Ignacio-Garro wants to merge 1 commit into
Open
Conversation
Adds the Chilean (CL) tax regime with: - RUT tax identity validation using the modulo 11 check digit algorithm, with normalization handled by tax.NormalizeIdentity. - Single flat-rate VAT (IVA) category at 19% (Ley 19.888, effective 2003-10-01); Chile has no reduced or intermediate rates. - Credit and debit note correction definitions, mirroring the SII's Nota de Credito/Debito Electronica document types. - Examples for a standard invoice, credit note, and debit note. The SII electronic invoicing clearance flow (DTE, CAF folios, digital signatures) is intentionally out of scope for the base regime and would fit a future addon, similar to es/tbai or es/verifactu.
Ignacio-Garro
marked this pull request as ready for review
July 17, 2026 04:22
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.
Adds the Chilean (CL) tax regime.
What's included
tax.NormalizeIdentity(strips punctuation like76.086.428-5and uppercases before validation).standardrate value.Decisions and scope
es/tbaiandes/verifactuextend the Spanish regime. This is also noted in the regime description.1-9is the classic example, covered in the tests).Pre-Review Checklist
go generate .to ensure that the Schemas and Regime data are up to date.