feat(fusion_accounting_reports): seed general ledger report definition + 8 verification tests
Adds data/report_general_ledger.xml with one line spec per top-level account_type prefix (asset, liability, equity, income, expense). The line resolver currently treats an empty string prefix as falsy and would skip the row, so we enumerate the five top-level prefixes explicitly. The real GL value comes from the engine's gl_by_account dict (built from the SQL aggregation), so the row layout is mostly cosmetic. Adds tests/test_seeded_reports.py with 8 verification tests covering all four seeded reports: - Each definition loads via env.ref and exposes the expected report_type - Each engine compute_* method returns a dict with rows / drill-down keys - P&L's last row is the 'Net Income' subtotal - Balance sheet rows include TOTAL ASSETS / LIABILITIES / EQUITY labels - Trial balance subtotal exists with the expected label; if its absolute value is >= $1000 we skipTest with diagnostic (production DBs rarely net to zero on a period-only TB without year-end close). Bumps manifest to 19.0.1.0.8. Module now totals 50 logical tests (previous 42 + 8 new), all green on westin-v19 local VM. Made-with: Cursor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
'name': 'Fusion Accounting Reports',
|
||||
'version': '19.0.1.0.7',
|
||||
'version': '19.0.1.0.8',
|
||||
'category': 'Accounting/Accounting',
|
||||
'summary': 'AI-augmented financial reports (P&L, balance sheet, trial balance, GL).',
|
||||
'description': """
|
||||
@@ -34,6 +34,7 @@ menu hides; the engine and AI tools remain available for the chat.
|
||||
'data/report_pnl.xml',
|
||||
'data/report_balance_sheet.xml',
|
||||
'data/report_trial_balance.xml',
|
||||
'data/report_general_ledger.xml',
|
||||
],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
|
||||
Reference in New Issue
Block a user