# alternera_resources_finance v0.9.0 - API Reference

## Modules

- [Alternera.Resources.Finance](Alternera.Resources.Finance.md): The finance reference data package: currencies, units of measure and VAT
codes.
- [Alternera.Resources.Finance.Convert](Alternera.Resources.Finance.Convert.md): The units of measure's **Convert**: an amount in one unit, in another of
the same base unit. It reads the two units in the caller's tenant, as the
caller, and changes nothing.
- [Alternera.Resources.Finance.Currency](Alternera.Resources.Finance.Currency.md): A currency, identified by its ISO 4217 code.
- [Alternera.Resources.Finance.Currency.Version](Alternera.Resources.Finance.Currency.Version.md): 
- [Alternera.Resources.Finance.ExchangeRate](Alternera.Resources.Finance.ExchangeRate.md): An exchange rate on a day: one unit of the base currency is `rate` units
of the quote currency. A record per pair and day, so the history stays:
a new day's rates are new records.
- [Alternera.Resources.Finance.ExchangeRate.Version](Alternera.Resources.Finance.ExchangeRate.Version.md): 
- [Alternera.Resources.Finance.RateLookup](Alternera.Resources.Finance.RateLookup.md): The exchange rates' calculations, generic actions of
`Finance.ExchangeRate` that read as the caller and change nothing. The
REST API serves each as `GET …/exchange_rate/<action>?…` and MCP as the
calculation of that name of `finance.exchange_rate`
- [Alternera.Resources.Finance.RecordRates](Alternera.Resources.Finance.RecordRates.md): `ExchangeRate.record_rates`: one day's rates against one base currency,
each stored as the pair's record for the day (created, or updated when
the day already has one), as the caller and in the caller's tenant.
- [Alternera.Resources.Finance.UI.ActiveCell](Alternera.Resources.Finance.UI.ActiveCell.md): A VAT code's Active column: a badge that says Active or Inactive in words.
- [Alternera.Resources.Finance.UI.BaseUnitsView](Alternera.Resources.Finance.UI.BaseUnitsView.md): The units of measure's **By base unit** view: a column per base unit,
its multiples below it with what one makes in the base unit. Each unit's
**Convert** opens the package's Unit converter in the Workbench on that
unit (`UI.open(ctx, {:workbench, :converter, code})`), where it stays
open beside whatever page the reader goes to next.

- [Alternera.Resources.Finance.UI.ByCountryView](Alternera.Resources.Finance.UI.ByCountryView.md): The VAT codes' **By country** view: a card per country, its codes inside
from the highest rate down, each with its rate and whether it is offered.
It shows the records the search matches (`records`), as every view does,
and reads nothing of its own.

- [Alternera.Resources.Finance.UI.ConversionsPanel](Alternera.Resources.Finance.UI.ConversionsPanel.md): A unit of measure's **Conversions** panel: what one of the unit makes in
every other unit of the same base unit, read with the viewer's context.

- [Alternera.Resources.Finance.UI.ConvertCurrencyHandler](Alternera.Resources.Finance.UI.ConvertCurrencyHandler.md): The exchange rates' **Convert** button: runs `ExchangeRate.convert` with the
viewer's tenant and actor and says the result in words, with the rate
and the day it is from.

- [Alternera.Resources.Finance.UI.ConverterItem](Alternera.Resources.Finance.UI.ConverterItem.md): The finance package's **Unit converter**, a Workbench item
(`workbench_item :converter` in the domain's `alternera_ui`): an amount
in one unit, shown in every other unit of the same base unit as the
reader types. It stays open beside whatever page the reader is on.
- [Alternera.Resources.Finance.UI.OverviewPage](Alternera.Resources.Finance.UI.OverviewPage.md): The finance package's **Overview** page: how many records each resource
holds, and the VAT codes of one country, chosen with buttons kept in the
page's URL (`put_params/2`). Every read goes through
`Alternera.Resource.UI.Records` with the viewer's context.

- [Alternera.Resources.Finance.UI.RateHistoryView](Alternera.Resources.Finance.UI.RateHistoryView.md): The exchange rates' **History** view: a card per currency pair with a
line chart of its rate over the chosen period (30 days, 90 days, a year
or everything kept), and beside it in words the newest rate, its day, the
change over the period and the period's low and high.
- [Alternera.Resources.Finance.UI.RatesView](Alternera.Resources.Finance.UI.RatesView.md): The VAT codes' **Rates** view: a bar per code, its length the rate
against the highest rate shown, highest first. Plain HTML: a chart needs
no script when it is a list of bars, and every bar says its rate in
words beside it.

- [Alternera.Resources.Finance.UnitOfMeasure](Alternera.Resources.Finance.UnitOfMeasure.md): A unit of measure, optionally defined as a multiple of a base unit.
- [Alternera.Resources.Finance.UnitOfMeasure.Version](Alternera.Resources.Finance.UnitOfMeasure.Version.md): 
- [Alternera.Resources.Finance.VatCode](Alternera.Resources.Finance.VatCode.md): A VAT code: a tax rate that applies in a country.
- [Alternera.Resources.Finance.VatCode.Version](Alternera.Resources.Finance.VatCode.Version.md): 

