Annotation Interface AccumulationRegister


@Retention(RUNTIME) @Target(TYPE) public @interface AccumulationRegister
  • Element Details

    • name

      String name
    • title

      String title
      Human-facing display label, distinct from the URL-safe name() identity. Use it for localized or multi-word titles while keeping name ASCII and space-free so routes stay clean. Surfaces in the UI metadata and is used for nav items and report headings. When empty, falls back to name().
      Default:
      ""
    • tableName

      String tableName
      Stable DB table name. When empty, derived from name().
      Default:
      ""
    • type

      Default:
      BALANCE
    • allowNegative

      boolean allowNegative
      Whether a AccumulationType.BALANCE register may retain negative resource totals. Keep this disabled for constrained balances such as inventory; enable it for balances whose domain permits debt or overdrafts, such as cash or credit accounts. Ignored for AccumulationType.TURNOVER registers.
      Default:
      false
    • postingOrder

      PostingOrder postingOrder
      Controls whether a backdated post/unpost restores later documents that wrote to this register. Use PostingOrder.CHRONOLOGICAL when later posting calculations depend on earlier register state, such as moving-average inventory cost.
      Default:
      INDEPENDENT
    • context

      String context
      Default:
      ""