Skip to content

Conversation

@guilleJB
Copy link
Member

@guilleJB guilleJB commented Jan 15, 2026

This pull request introduces the initial implementation of the SII ATC module, which adapts the existing SII library for the Canarian Tax Agency (ATC) and the IGIC tax regime. The main changes are the addition of new files for constants, schemas, and documentation, all tailored to support IGIC instead of IVA. The changes include detailed Marshmallow schemas for XML validation, IGIC-specific constants and validation logic, module versioning, and comprehensive documentation in Catalan.

IGIC-specific support and constants:

  • Added sii/atc/constants.py with IGIC tax rates, historical rates, mappings, and validation functions, as well as ATC-specific codes and enums. Includes logic to validate IGIC rates according to operation date.

Marshmallow schemas for IGIC XML structures:

  • Added sii/atc/models/invoices_record.py defining Marshmallow schemas for validating ATC invoice XML structures, including IGIC-specific fields and validation logic.
  • Added sii/atc/models/__init__.py to initialize the models subpackage.

Module versioning:

  • Added sii/atc/__init__.py with the ATC SII module version constant (__ATC_SII_VERSION__).

Documentation and usage:

  • Added a comprehensive Catalan README (sii/atc/README.md) explaining module features, usage examples, IGIC differences from AEAT, constants, validation, endpoints, technical notes, and TODOs.

@guilleJB
Copy link
Member Author

DEPLOYED

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