The engine orchestrator. compute_pnl, compute_balance_sheet, compute_trial_balance, compute_gl, drill_down. All controllers, wizards, AI tools must route through these methods; no direct SQL aggregation from anywhere else. Internal pipeline: validate -> fetch hierarchy -> SQL aggregate -> resolve line_specs -> optional comparison + anomaly. Uses raw SQL for the per-account aggregate (the perf-critical step), ORM for everything else. Per-company report lookup with global fallback (company_id desc nulls last). Balance sheet uses 1970 epoch as date_from for cumulative-since-inception semantics. 7 new tests, 42 total passing. Made-with: Cursor
7 lines
217 B
Python
7 lines
217 B
Python
from . import test_services_unit
|
|
from . import test_currency_conversion
|
|
from . import test_fusion_report
|
|
from . import test_line_resolver
|
|
from . import test_drill_down_resolver
|
|
from . import test_fusion_report_engine
|