# itemsTotal

itemsTotal in @provenanceauth/rails/deals, Rails. The total of an offer's items, rounded to the currency's minor unit.

## Signature

```ts
itemsTotal(items: Pick<OfferItem, "quantity" | "unit_price">[], currency: string): number
```

## Parameters

- `items` (Pick<OfferItem, "quantity" | "unit_price">[])
- `currency` (string)

## Returns

`number`

Runs locally, with no request to the API.
