[BUG] Missing Cost of Sales/COGS row in income statement display #21
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 income statement should have a clear "Cost of Sales" row that aggregates COGS (Cost of Goods Sold) items, but it may not be displaying correctly or may not be aggregating all relevant COGS concepts.
Current State
The template defines
cost_of_revenueat order 20 inlib/server/financials/standard-template.ts:Issues
lib/server/financials/surface.ts) uses label "Cost of Revenue" (line 50) vs template's "Cost of Sales"Proposed Fix
CostOfGoodsAndServicesSoldExcludingDepreciationDepletionAndAmortizationCostOfMerchandisePurchasedCostOfMaterialsDirectCostsOfGoodsAndServicesSoldFiles Affected
lib/server/financials/standard-template.tslib/server/financials/surface.tsRoot Cause Found
cost_of_revenuesurface is MISSING fromrust/taxonomy/fiscal/v1/core.surface.json!Evidence:
cost_of_revenueis referenced incore.income-bridge.json(lines 47-56) as a component for gross_profit calculationrust/taxonomy/crosswalk/us-gaap.json(lines 101-126) maps COGS concepts tocost_of_revenuesurface_keycore.surface.jsonhas NO surface definition forcost_of_revenue- it jumps fromrevenue(order 10) tooperating_expenses(order 40)Missing Surface Definition:
The following should be added to
core.surface.json:Also Missing:
gross_profitsurface (order 30) - should derive fromrevenue - cost_of_revenueFix:
Add these surface definitions to
rust/taxonomy/fiscal/v1/core.surface.json