A powerful, secure, and fully compliant electronic invoicing module for Perfex CRM, designed to meet the mandatory requirements of the General Tax Administration (AGT - Administração Geral Tributária) of Angola.
# 🇦🇴 Angola E-Invoice (SAF-T AO) for Perfex CRM
A powerful, secure, and fully compliant electronic invoicing module for Perfex CRM, designed to meet the mandatory requirements of the **General Tax Administration (AGT - Administração Geral Tributária)** of Angola.
---
## 📸 Screenshots
### Advanced SAF-T AO Export Utility
### Module Configuration (AGT Certification)
---
## 🚀 What's New (v1.2.0)
- **One-Click Consolidated Export**: Generates a single, compliant SAF-T AO XML that concurrently aggregates both Sales Invoices (`FT`) and Credit Notes (`NC`), correctly mapping ` ` and ` `.
- **Dynamic MasterFiles Population**: Automatically traverses all exported documents to construct accurate ` ` and ` ` dictionaries embedded directly in the ` ` header.
- **TaxTable Compliance**: Properly structured standard tax mappings (`TaxTableEntry`) for `IVA` inclusion.
- **Native PHP XML Construction**: Deprecated legacy Mustache parsing for the final SAF-T output in favor of rock-solid native PHP logic to eliminate view-render inconsistencies.
## 🚀 Previous Updates (v1.1.0)
- **Advanced Export Utility**: Added a powerful new UI for SAF-T AO global exports.
- **Dynamic Filtering**: Filter exports by **Status** (Paid, Unpaid, Cancelled, etc.) and **Period** (This Month, Last Year, Custom Range).
- **Credit Note Support**: Full export support for Credit Notes alongside Invoices.
---
## 🔥 Key Features
### 🛡️ Digital Security
- **Asymmetric Encryption**: Full RSA-SHA1 signing for all tax-relevant documents.
- **Hash Chaining**: Secure sequential linking for audit integrity (prevents post-hoc document modification).
- **Key Management**: Integrated storage and rotation of RSA Private & Public keys.
### 📤 Compliance & Reporting
- **Advanced SAF-T AO Export**: Flexible utility to generate compliant XML 1.01 files with advanced status and date filters.
- **Real-time API (2026)**: Automatic JSON submission to the AGT REST API gateway for government-cleared invoicing.
- **Au …