feat: book monthly AI-plan invoices as facts and commitments
Add ai-plan ingest that stores one current booked fact per provider-account × plan × period. Subscriptions become recurring commitments; usage top-ups do not. Session-level rows are rejected.
This commit is contained in:
parent
38d0bf21c9
commit
ce4f791a63
11 changed files with 511 additions and 5 deletions
|
|
@ -22,6 +22,8 @@ uv sync
|
|||
uv run pytest
|
||||
uv run finhub runway --balance 12000 --monthly-burn 2100,2200,2000
|
||||
uv run finhub ledger import cloud tests/fixtures/cloud-costs.csv
|
||||
uv run finhub ledger import ai-plan tests/fixtures/ai-plans.csv
|
||||
uv run finhub ledger commitments
|
||||
uv run finhub ledger set-price --client acme --application portal --instance prod-01 --period 2026-07 --amount 100 --source agreement-2026-01
|
||||
uv run finhub ledger margins
|
||||
uv run finhub ledger allocations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue