Skip to content

Peppol PINT base addon - #906

Open
migueltorresvalls wants to merge 1 commit into
au-nz-regimefrom
peppol-pint-addon
Open

Peppol PINT base addon#906
migueltorresvalls wants to merge 1 commit into
au-nz-regimefrom
peppol-pint-addon

Conversation

@migueltorresvalls

@migueltorresvalls migueltorresvalls commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Based on: #885

Add the base Peppol International (PINT) billing addon. Builds on EN 16931 and
re-maps the UNTDID 5305 tax category from the GOBL tax key so non-VAT schemes
(GST) are reported correctly — standard-rated GST as "S" instead of "O".

Changes:

  • peppol-pint addon: tax-category normalizer (reuses en16931.TaxCategoryMap) + PINT rules not covered by core/en16931 (IBR-007/080/081/CO-26)
  • Export en16931.TaxCategoryMap (was vatKeyMap) for reuse
  • AU + NZ (standard and zero-rated) example invoices

Notes:

Pre-Review Checklist

  • Opened this PR as a draft
  • Read the CONTRIBUTING.md guide.
  • Performed a self-review of my code.
  • Added thorough tests with at least 90% code coverage.
  • Modified or created example GOBL documents to show my changes in use, if appropriate.
  • Added links to the source of the changes in tax regimes or addons, either structured or in the comments.
  • Run go generate . to ensure that the Schemas and Regime data are up to date.
  • Reviewed and fixed all linter warnings.
  • Been obsessive with pointer nil checks to avoid panics.
  • Updated the CHANGELOG.md with an overview of my changes.
  • Marked this PR as ready for review.

And if you are part of the org:

  • [] Requested a review from Copilot and fixed or dismissed (with a reason) all the feedback raised.
  • [] Requested a review from @samlown.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@migueltorresvalls migueltorresvalls changed the title addons/peppol/pint: add Peppol PINT base addon Peppol PINT base addon Jul 18, 2026
@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.18072% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.81%. Comparing base (602103f) to head (1358939).

Files with missing lines Patch % Lines
addons/peppol/pint/bill.go 91.66% 1 Missing and 1 partial ⚠️
addons/peppol/pint/tax_combo.go 85.71% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           au-nz-regime     #906      +/-   ##
================================================
+ Coverage         94.80%   94.81%   +0.01%     
================================================
  Files               349      352       +3     
  Lines             19021    19099      +78     
================================================
+ Hits              18033    18109      +76     
- Misses              601      602       +1     
- Partials            387      388       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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