Complete financial reporting system for SADPMR with automated GRAP mapping and PDF generation.
- Python 3.8+
- Modern web browser
- Excel/CSV trial balance files
-
Install dependencies
pip install -r requirements.txt
-
Start the application
python run.py
-
Access the web interface
- Open:
http://localhost:5000 - Upload trial balance and generate GRAP-compliant statements
- Open:
FinancialReportingSystem/
βββ app.py # Main application entry point
βββ run.py # Development server runner
βββ requirements.txt # Python dependencies
βββ config/ # Application configuration
β βββ __init__.py # Config package init
β βββ settings.py # Environment settings
βββ controllers/ # Route handlers and API endpoints
β βββ __init__.py # Controllers package init
β βββ routes.py # Flask routes and views
βββ models/ # Data models and business logic
β βββ __init__.py # Models package init
β βββ grap_models.py # GRAP mapping engine
βββ utils/ # Helper functions and utilities
β βββ __init__.py # Utils package init
β βββ validators.py # Data validation functions
β βββ helpers.py # Utility functions
βββ static/ # CSS and JavaScript
β βββ css/style.css # Professional styling
β βββ js/ # Frontend functionality
βββ templates/ # HTML templates
β βββ index.html # Dashboard
β βββ upload.html # File upload interface
β βββ about.html # System information
βββ docs/ # GitHub Pages demo
β βββ index.html # Marketing landing page
β βββ css/style.css # Demo styling
β βββ js/main.js # Interactive features
β βββ README.md # Demo documentation
βββ uploads/ # Uploaded trial balances
βββ outputs/ # Generated PDF reports
- Zero Manual Intervention: Complete automation from trial balance to GRAP statements
- Intelligent Account Recognition: Maps Pastel/Excel accounts to GRAP line items
- Validation & Error Checking: Identifies unmapped accounts automatically
- Statement of Financial Position: GRAP-compliant balance sheet
- Statement of Financial Performance: Income statement with surplus/deficit
- Cash Flow Statement: Automated indirect method calculation
- Financial Ratios: Current ratio, debt-to-equity, operating margin, ROA
- SADPMR Branded Templates: Official formatting and styling
- GRAP Standards Compliance: Proper line item classification
- Color-Coded Statements: Visual distinction between statement sections
- Benchmark Comparisons: Industry standard ratio benchmarks
- Flask: Lightweight web framework
- Pandas: Data processing and analysis
- ReportLab: Professional PDF generation
- OpenPyXL: Excel file processing
- Modern HTML5/CSS3: Responsive design
- Vanilla JavaScript: Interactive file upload
- Professional UI: SADPMR branding and styling
- Upload: Trial balance (Excel/CSV) β Server
- Process: Account mapping β GRAP classification
- Generate: Financial statements β PDF report
- Download: Professional GRAP-compliant report
- Navigate to
/upload - Select Excel or CSV trial balance file
- System validates and processes the file
- System automatically maps accounts to GRAP codes
- Review any unmapped accounts (if present)
- Confirm mapping accuracy
- Click "Generate Financial Statements"
- System processes and creates GRAP-compliant statements
- Review generated statements on screen
- Click "Download PDF Report"
- Receive professional SADPMR-branded financial statements
- Ready for submission and review
- Traditional systems: 40+ hours manual account mapping
- Our system: 5 minutes complete automation
- Automatic line item classification
- Proper statement formatting
- Audit trail compliance
- SADPMR official templates
- Color-coded financial statements
- Industry benchmark comparisons
- Full compliance with GRAP accounting standards
- Proper line item classification
- Standard financial statement format
- Local processing only
- No external data transmission
- Secure file handling
- Complete processing log
- Error tracking and reporting
- Version control support
- System requirements and setup
- Troubleshooting common issues
- Performance optimization tips
- Step-by-step usage guides
- Video tutorials (coming soon)
- FAQ and best practices
- Multi-user support and role-based access
- Advanced ratio analysis dashboard
- Budget vs actual comparisons
- Automated audit preparation
- Real-time collaboration
- Cloud deployment options
- API integration capabilities
- Advanced reporting analytics
Β© 2026 South African Diamond and Precious Metals Regulator (SADPMR) All rights reserved.
Transform your financial reporting with automated GRAP compliance and professional statement generation.