Skip to content

Conversation

@pmenendz
Copy link
Contributor

@pmenendz pmenendz commented Dec 20, 2025

DO NOT MERGE UNTIL THE NEW GOBL RELEASE!!

Waiting for invopop/gobl#665

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Argentina's ARCA (AFIP) tax authority requirements by implementing QR code and CAE (Comprobante de Autorización Electrónico) display functionality. The changes also refactor country code comparisons across the codebase to use a more consistent API pattern.

Key changes include:

  • New Argentina regime component with ARCA QR code and CAE display template
  • Refactored country code comparison from Country to Country.Code() for consistency
  • Added exemption column to Spanish invoice HTML outputs
  • Local GOBL dependency replacement for development

Reviewed changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
goblhtml.go Updated Portuguese country check to use Country.Code() method
go.mod Added local GOBL dependency replacement directive
go.sum Removed GOBL v0.301.0 checksum entries due to local replacement
components/regimes/pt/pt.go Refactored country code comparison to use Country.Code()
components/regimes/gr/gr.go Refactored country code comparison to use Country.Code()
components/regimes/ar/arca.templ New template for rendering ARCA QR code and CAE information
components/regimes/ar/arca_templ.go Generated Go code from arca.templ template
components/regimes/ar/ar.go New package documentation for Argentine regime support
components/bill/invoice.templ Integrated ARCA QR component into invoice extensions
components/bill/invoice_templ.go Generated Go code with ARCA integration
examples/ar-arca-standard.json Example Argentine invoice with ARCA stamps
examples/out/ar-arca-standard.html Generated HTML output for Argentine invoice
examples/credit-note.adjustment.es.json Updated digest and added tax exemption extensions
examples/credit-note-es-es-tbai.json Updated digest and added tax exemption extensions
examples/out/credit-note.adjustment.es.html Added exemption column to line items and tax tables
examples/out/credit-note-es-es-tbai.html Added exemption column to line items and tax tables

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants