Beancount.Schemas.Pad (beancount_ex v0.6.0)

Copy Markdown View Source

Persisted pad directive (table beancount_pads).

Storage-layer counterpart of Beancount.Directives.Pad.

Fields

  • date - the day padding is allowed to take effect.
  • account - account to be padded.
  • source_account - account the padding transaction draws from (typically an Equity: account).
  • metadata - arbitrary key/value map.
  • file_order - zero-based position of the directive in the source.

Example

%Beancount.Schemas.Pad{
  date: ~D[2026-01-07],
  account: "Assets:Bank",
  source_account: "Equity:Opening-Balances",
  metadata: %{},
  file_order: 14
}

Summary

Types

t()

@type t() :: %Beancount.Schemas.Pad{
  __meta__: term(),
  account: term(),
  date: term(),
  file_order: term(),
  id: term(),
  inserted_at: term(),
  metadata: term(),
  source_account: term(),
  updated_at: term()
}