feat: operational resource procurement facility

Implement RESOURCE-WP-0005: entity register, V0.1 terms parameters,
entity association on inventory and planning records, transfer-price
and credit-state arithmetic, monthly settlement, and entity views on
the portfolio report. Live close emits nothing until delivered cost
is known. Handoffs are FIN-WP-0006 and RAILIANCE-WP-0017.
This commit is contained in:
tegwick 2026-08-14 13:15:02 +02:00
parent 325a505980
commit f8d1c542d5
37 changed files with 1316 additions and 28 deletions

View file

@ -1,4 +1,4 @@
.PHONY: test forecast variance control-cycle exchange-forecast optimization portfolio-report
.PHONY: test forecast variance control-cycle exchange-forecast optimization portfolio-report settlement
test:
python3 -m unittest discover -s tests -p 'test_*.py'
@ -23,3 +23,7 @@ optimization:
portfolio-report:
python3 tools/portfolio_report.py .
settlement:
@test -n "$(PERIOD)" || { echo 'PERIOD=YYYY-MM is required' >&2; exit 2; }
python3 tools/settlement.py close --period $(PERIOD)