@maschinenlesbar.org/bundeshaushalt-cli
    Preparing search index...

    Type Alias PlanVsActual

    PlanVsActual:
        | {
            latestYearWithActuals?: number;
            reason: string;
            searched: BudgetParams;
            status: "empty";
        }
        | {
            account: Account;
            actualLabel: string;
            compared: number;
            element: { id?: string; label: string };
            onlyInActual: { id: string; label: string; value: number }[];
            onlyInPlan: { id: string; label: string; value: number }[];
            overspent: PlanVsActualRow[];
            planLabel: string;
            status: "ok";
            totals: {
                actual: number;
                delta: number;
                deltaPercent: number | null;
                executedPercent: number | null;
                target: number;
            };
            underspent: PlanVsActualRow[];
            unit: Unit;
            year: number;
        }

    The answer of comparePlanToActual.

    Type Declaration

    • {
          latestYearWithActuals?: number;
          reason: string;
          searched: BudgetParams;
          status: "empty";
      }
    • {
          account: Account;
          actualLabel: string;
          compared: number;
          element: { id?: string; label: string };
          onlyInActual: { id: string; label: string; value: number }[];
          onlyInPlan: { id: string; label: string; value: number }[];
          overspent: PlanVsActualRow[];
          planLabel: string;
          status: "ok";
          totals: {
              actual: number;
              delta: number;
              deltaPercent: number | null;
              executedPercent: number | null;
              target: number;
          };
          underspent: PlanVsActualRow[];
          unit: Unit;
          year: number;
      }
      • account: Account
      • actualLabel: string
      • compared: number

        Elements compared.

      • element: { id?: string; label: string }
      • onlyInActual: { id: string; label: string; value: number }[]
      • onlyInPlan: { id: string; label: string; value: number }[]

        Planned but with no realised line, and realised without a planned line.

      • overspent: PlanVsActualRow[]
      • planLabel: string

        What the plan and the realised figures cover, as the portal labels them (a plan may include a supplementary budget).

      • status: "ok"
      • totals: {
            actual: number;
            delta: number;
            deltaPercent: number | null;
            executedPercent: number | null;
            target: number;
        }
      • underspent: PlanVsActualRow[]
      • unit: Unit
      • year: number