@trajectonomics/cli 0.9.0-alpha.6 → 0.9.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -474,6 +474,34 @@ its own. In every year, money in plus `unmet` (the cash a Shortfall left unpaid)
|
|
|
474
474
|
saving and left over: the engine routes every unit of cash. `not funded` is the part of the
|
|
475
475
|
Contributions the cash could not fund; it is not in saving.
|
|
476
476
|
|
|
477
|
+
### By Reporting year, and the months of one
|
|
478
|
+
|
|
479
|
+
`--breakdown-years` adds the cash flow per Reporting year: twelve months from the 1st of the month
|
|
480
|
+
`--year-start` names (default 1, January), named by the calendar year it begins in. The first starts on
|
|
481
|
+
the As-of, and the last ends on the horizon or the date the money runs out; a cut one is partial.
|
|
482
|
+
`--breakdown-months first|all|YYYY` adds the Reporting months of the first Reporting year, of every
|
|
483
|
+
Reporting year, or of the one named year. The two breakdown flags are independent of `--breakdown` and of
|
|
484
|
+
each other; `--year-start` alone is refused (exit 2) and needs one of them.
|
|
485
|
+
|
|
486
|
+
In JSON `--breakdown-years` adds the `cashflowYears` table, one row per Reporting year and line, the
|
|
487
|
+
`cashflowYearTotals` table beside it with nine section totals per year, and `cashflowYearTransfers` when
|
|
488
|
+
the engine states a transfer, with what it moved and what it did not. `--breakdown-months` adds `cashflowMonths`, `cashflowMonthTotals` and
|
|
489
|
+
`cashflowMonthTransfers` in the same shapes, each row carrying its `month` as `YYYY-MM`. A month with
|
|
490
|
+
no line still states its nine zero totals. The answer gains a top-level `yearStart`, so a reader can
|
|
491
|
+
name the year rule without reading the command. In the human format a Reporting year is one block like
|
|
492
|
+
the one above, and each of its months is a row of one table:
|
|
493
|
+
|
|
494
|
+
```
|
|
495
|
+
cash flow by month, 2026
|
|
496
|
+
month money in tax spending saving left over unmet
|
|
497
|
+
2026-11* 1000.00 0.00 0.00 0.00 1000.00 0.00
|
|
498
|
+
2026-12 1600.00 0.00 600.00 0.00 1000.00 0.00
|
|
499
|
+
* partial: the month is cut by the As-of, the horizon or the date the money runs out.
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
An `*` marks a partial month, and the note under the table says so. A month with no line prints as a
|
|
503
|
+
row of zeros, because the Reporting year states every month it covers.
|
|
504
|
+
|
|
477
505
|
## Where the money goes, and moving it between Accounts
|
|
478
506
|
|
|
479
507
|
`cashflow` takes three more forms, every figure in them the caller's own (`traj` ships none): a surplus step's `share`, which takes that
|
package/package.json
CHANGED