# `Wenche.Aarsregnskap`
[🔗](https://github.com/jarls-side-projects/elixir-wenche/blob/main/lib/wenche/aarsregnskap.ex#L1)

Annual accounts submission to Brønnøysundregistrene via Altinn 3.

Ported from `wenche/aarsregnskap.py` in the original Python Wenche project.

Handles config reading, validation, and submission of annual accounts.

# `les_config`

Reads a config.yaml file and returns an Aarsregnskap struct.

Returns `{:ok, aarsregnskap}` or `{:error, reason}`.

# `send_inn`

Submits the annual accounts to Brønnøysundregistrene via Altinn.

## Options

- `:dry_run` — if true, writes XML files locally without sending to Altinn (default: false)

Returns `{:ok, inbox_url}` or `{:error, reason}`.

# `valider`

Validates the accounts and returns a list of error messages.

Empty list means OK.

---

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