[BUG] Balance sheet display order incorrect - should be Assets, Liabilities, Equity #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The balance sheet is displaying items in an incorrect order. Per standard accounting presentation, the order should be:
Current Template Order
From
lib/server/financials/standard-template.ts, the template defines correct order numbers:Surface Display Order
From
lib/server/financials/surface.ts:77-96:Problem
The surface definitions appear correct in order, but:
categoryvaluesstatement-view-model.tssorts by order but doesn't create visual section breaksProposed Fix
categoryfield (assets,liabilities,equity)Files Affected
lib/server/financials/standard-template.tslib/server/financials/surface.tslib/financials/statement-view-model.tsUpdate: Root Cause Analysis
The Rust sidecar IS being used. The balance sheet order IS correctly defined in
rust/taxonomy/fiscal/v1/core.surface.json.Current Order (from core.surface.json):
Problem:
The order values ARE correct in the JSON, but the UI may not be:
categoryfield in surface definitions is set but may not be used for grouping in the UIEvidence from core.surface.json:
Fix Required:
categoryfieldsectionfield (assets/liabilities/equity) in addition to category for clearer groupingFiles to Review:
lib/financials/statement-view-model.ts- Check tree node grouping logic