# `Beancount.Directives.Note`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/directives/note.ex#L1)

The `note` directive attaches a dated comment to an account.

See [Notes](https://beancount.github.io/docs/beancount_language_syntax/#notes).

## Beancount syntax

    2026-01-01 note Assets:Bank "Called the bank about fees"

General form: `YYYY-MM-DD note Account "Comment"`

## Elixir struct

    %Beancount.Directives.Note{
      date: ~D[2026-01-01],
      account: "Assets:Bank",
      comment: "Called the bank about fees",
      metadata: %{}
    }

Or use `Beancount.note/4`:

    Beancount.note(~D[2026-01-01], "Assets:Bank", "Called the bank about fees")

## Fields

  * `date` - `Date.t()` the note applies to.
  * `account` - account the comment is attached to.
  * `comment` - free-text string (rendered quoted).
  * `metadata` - optional map rendered below the directive.

# `t`

```elixir
@type t() :: %Beancount.Directives.Note{
  account: String.t(),
  comment: String.t(),
  date: Date.t(),
  metadata: map()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
