Saxonberg Server API
    Preparing search index...

    A categorized read of one account's ledger — the bar's P&L instrument. A derive-on-read consumer (the rich tagging means no backfill): per-category signed net (money in − money out, in minor units) plus the running balance that sits red by design (a count, never a worth-assertion).

    interface ProfitAndLoss {
        account: string;
        balance: number;
        lines: Partial<Record<PnlCategory, number>>;
    }
    Index

    Properties

    Properties

    account: string

    The account this P&L is for.

    balance: number

    The running balance (materialized), minor units — red by design.

    lines: Partial<Record<PnlCategory, number>>

    Per-category signed net flow (positive = net in), minor units.