Skip to content

Add Facturama Carta Porte 3.1 mapping support#78

Closed
max3903 wants to merge 1 commit into
SAT-CFDI:mainfrom
ursais:feature/facturama-carta-porte
Closed

Add Facturama Carta Porte 3.1 mapping support#78
max3903 wants to merge 1 commit into
SAT-CFDI:mainfrom
ursais:feature/facturama-carta-porte

Conversation

@max3903

@max3903 max3903 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extends the Facturama Multiemisor JSON mapper to support Complemento Carta Porte 3.1 (NameId: "36", Complemento.CartaPorte31).
  • Detects Carta Porte both as a nested Complemento['CartaPorte'] node and as the complement CFDI itself after create().
  • Covers autotransporte (primary path) plus marítimo/aéreo/ferroviario, Ubicaciones, Mercancias, FiguraTransporte, PartesTransporte, and RegimenesAduaneros.

Test plan

  • pytest tests/test_pac_facturama.py (12 passed)
  • Optional: Multiemisor sandbox issue() with a tipo T/I CFDI that includes Carta Porte 3.1 and uploaded CSD

Made with Cursor

Map CFDI Complemento CartaPorte to Multiemisor JSON (NameId 36) so
traslado/ingreso waybills can be sealed through issue().

Co-authored-by: Cursor <cursoragent@cursor.com>
@max3903

max3903 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #79 (single PR with Carta Porte + Web/complements, without Cursor co-author).

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