feat: add Latvia tax regime - #879
Open
patricia-drt wants to merge 7 commits into
Open
Conversation
patricia-drt
marked this pull request as ready for review
June 28, 2026 18:39
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #879 +/- ##
==========================================
- Coverage 94.75% 94.71% -0.05%
==========================================
Files 343 345 +2
Lines 18815 18928 +113
==========================================
+ Hits 17829 17927 +98
- Misses 600 609 +9
- Partials 386 392 +6 ☔ 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.
Summary
Introduced new tax regime for Latvia (LV) with VAT category support, including the standard, intermediate and reduced rates with comprehensive tax identity validation for both legal entities and individuals.
What's included
regimes/lv — regime definition.
VAT categories and rates:
Note: Latvia does not currently have a super-reduced VAT rate (< 5% as per EU directive).
VAT identity validation: Complete Latvian VAT/tax identity code validation:
Corrections: Credit notes and debit notes both recognized in Latvian VAT practice, following GOBL's default correction handling.
Scenarios: Reverse charge scenario for B2B intra-community supplies with automatic tax extension.
examples/lv — three invoice examples with golden outputs:
Generated data: data/regimes/lv.json, data/rules/lv.json, and regime-code schema via go generate.
Scope decisions
Sources
Pre-Review Checklist
go generate .to ensure that the Schemas and Regime data are up to date.And if you are part of the org: