Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    Interface CurrentDaySales

    Current configured local-day commercial sales reconstructed from finalized commercial facts.

    grossTotalMinor and products are produced by one grouped read, so the headline total and the per-product breakdown can never disagree about what the day contains. Both are derived from immutable item snapshots of commercial finalizations only; fulfillment state, catalog edits, and session-local state do not participate.

    interface CurrentDaySales {
        grossTotalMinor: number;
        products: ProductSalesCount[];
    }
    Index
    grossTotalMinor: number

    Exact gross amount in integer SEK minor units.

    products: ProductSalesCount[]

    One entry per product that sold today, largest quantity first.

    Products with no commercial sale in the current day are absent rather than reported as zero: the breakdown answers "what has been sold today", and an empty day is an empty list next to a zero total.