invoicing-service — render from snapshots

Enter cumulative-balance snapshots; the real pipeline reconstructs the per-cycle deltas (state at end − state at start) and builds the documents. Use two dates for the same position to produce a delta.

Example configurations

Each link loads and renders a scenario below (and is shareable).

Input mode:
Cycle period (half-open [start, end)) — which cycle to render
Account settings
Position balance snapshots
as_ofposition_typeslugrec_to_dca rec_to_creditorbillablevattaxable
JSON cycle files

A list of dated cycle files, each the same envelope the service ingests from S3. Every file carries its own account_settings (mode, offsetting toggles, documents) and positions_snapshots, so the account settings above are ignored in this mode. Files are ingested in date order through the real pipeline; the cycle period above selects which movement to render.


Error

parse JSON: unexpected end of JSON input