Complete Angolan Chart of Accounts (Plano Geral de Contabilidade) in multiple formats ready for integration into accounting software.
This repository contains the Plano Geral de Contabilidade (PGC) - Angola's official Chart of Accounts, extracted from Decreto nΒΊ 82/01 de 16 de Novembro and converted into multiple machine-readable formats.
Key Features:
- β 767 accounts across 9 classes
- β Multiple formats: JSON (hierarchical & flat), CSV, Markdown
- β QuickBooks ready: Direct import files included
- β Validated structure: All accounts verified and cross-checked
- β Bilingual: Portuguese names with English descriptions
Hierarchical JSON (for tree views):
const pgc = require('./pgc_chart_of_accounts.json');
// Access: pgc.classes[0].accounts[0].childrenFlat JSON (for database imports):
import json
accounts = json.load(open('pgc_chart_of_accounts_flat.json'))
# Each account has: code, name, description, level, parent, typeQuickBooks Import (ready-to-use CSV files):
- Open QuickBooks Desktop
- Go to Lists β Chart of Accounts β Account β Import from Excel
- Select the appropriate level CSV file from
quickbooks/folder - Follow the import wizard
See QuickBooks Import Guide for detailed instructions.
pgc/
βββ README.md # This file
βββ LICENSE # MIT License
β
βββ Output Files (Use These)
βββ pgc_chart_of_accounts.json # Hierarchical JSON structure
βββ pgc_chart_of_accounts_flat.json # Flat JSON structure
βββ pgc_chart_of_accounts.md # Human-readable documentation
β
βββ QuickBooks Import
βββ quickbooks/
β βββ README.md # QuickBooks import instructions
β βββ pgc_quickbooks_validated_level_1_import.csv
β βββ pgc_quickbooks_validated_level_2_import.csv
β βββ pgc_quickbooks_validated_level_3_import.csv
β βββ pgc_quickbooks_validated_level_4_import.csv
β βββ pgc_quickbooks_validated_level_5_import.csv
β
βββ Scripts (Development)
βββ parse_pgc_improved.py # Parser script
βββ generate_markdown.py # Markdown generator
βββ validate_pgc.py # Validation script
β
βββ Source Files
βββ pgc.txt # Original text file
βββ docs/
βββ pgc.pdf # Original decree PDF
βββ README_PGC_CHART.md # Detailed technical documentation
βββ IMPLEMENTATION_SUMMARY.md # Implementation notes
| Code | Name | Accounts | Description |
|---|---|---|---|
| 1 | Meios fixos e investimentos | 85 | Fixed assets and investments |
| 2 | ExistΓͺncias | 34 | Inventories |
| 3 | Terceiros | 210 | Third parties (customers, suppliers, etc.) |
| 4 | Meios monetΓ‘rios | 47 | Monetary assets (cash, banks, etc.) |
| 5 | Capital e reservas | 17 | Equity |
| 6 | Proveitos e ganhos por natureza | 153 | Income and gains by nature |
| 7 | Custos e perdas por natureza | 179 | Costs and losses by nature |
| 8 | Resultados | 42 | Results |
| 9 | Contabilidade AnalΓtica | 0 | Management accounting (optional) |
- Import the chart of accounts into your accounting software
- Use hierarchical JSON for tree-view UI components
- Use flat JSON for database imports and SQL operations
- Reference complete PGC structure
- Import directly into QuickBooks or similar software
- Understand the Angolan accounting framework
- Set up accounting system with official Angola COA
- Ensure compliance with Angolan accounting standards
- Customize with entity-specific sub-accounts
- QuickBooks Import Guide - Step-by-step QuickBooks integration
- Technical Documentation - Detailed structure and usage
- Implementation Summary - Parser implementation details
- Chart of Accounts - Complete account listing
# Parse source and create JSON files
python3 parse_pgc_improved.py
# Generate markdown documentation
python3 generate_markdown.py
# Validate all outputs
python3 validate_pgc.py- Python 3.7+
- No external dependencies required (uses standard library only)
- Nested structure with parent-child relationships
- Best for: Tree-view displays, drill-down interfaces
- Size: ~200KB
- Flat list with parent references
- Best for: Database imports, SQL inserts
- Size: ~150KB
- 711 entries (9 classes + 702 accounts)
- Human-readable documentation
- Table of contents with links
- Hierarchical tables for each class
- 5 separate files for each account level
- Ready for direct import into QuickBooks Desktop
- Validated format and structure
All outputs have been validated for:
- β Complete 9-class structure
- β Zero duplicate codes
- β Numerical sequence integrity
- β Valid parent-child relationships
- β Consistency across all formats
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
The Plano Geral de Contabilidade is based on Decreto nΒΊ 82/01 de 16 de Novembro (official Angolan government decree).
- Based on the official Angolan PGC (Decreto nΒΊ 82/01)
- Parsed and structured for modern software integration
- Validated against official source documents
For questions or issues:
- Check the documentation
- Review the implementation summary
- Open an issue on GitHub
Generated: 2025
Version: 1.0
Status: Production Ready β