AdvPL Fiscal & MATXFIS Expert

•
13
•

Provides comprehensive guidance for implementing Brazilian tax logic and fiscal operations within the TOTVS Protheus ERP using the MATXFIS family.

This skill empowers developers working with ADVPL to master the MATXFIS module, the core fiscal engine of the Protheus ERP. It facilitates the creation and maintenance of electronic invoices (NF-e/NFC-e), the automation of tax calculations for ICMS, IPI, PIS, and COFINS, and the generation of essential Brazilian regulatory reports like SPED and EFD-REINF. By offering domain-specific patterns, entry-point documentation, and utility function references like MaFisIni and MaFisCalc, it ensures tax compliance and data integrity while reducing technical debt in complex fiscal workflows.

Key Features

01Support for Brazilian electronic document flows including NF-e, CT-e, and NFC-e
02Expert assistance with SPED Fiscal, SPED Contribuições, and REINF reporting
0313 GitHub stars
04Deep integration with MATXFIS fiscal routines and tax calculation functions
05Guidance on critical Entry Points (PE) for fiscal and invoice customization
06Comprehensive mapping of Protheus fiscal tables (SF2, SD2, SF3, CDA, CDF)

Use Cases

01Automating the generation of regulatory files for SPED and other Brazilian fiscal obligations
02Developing and troubleshooting electronic invoice (NF-e) transmission and rejection handling
03Implementing custom tax calculation rules for ICMS-ST and DIFAL in Protheus