# Quotes

> Quotes with sections, optional lines, discounts, prices with or without tax, tax per rate and a deposit; published versions; a public link or the signed-in portal the customer accepts, rejects or asks changes through; expiry; and quotes from deals. With catalog, a line that names a product variant takes its price and title.

- Category: CRM & sales
- Module: `quotes`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/quotes
- Page: https://bettersupabase.com/blocks/quotes

## Install

```bash
npx better-supabase add quotes
```

The command also installs `updated-at`, `memberships`, `permissions`, `subjects`.

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Required by quotes; add installs them too.
    "updated-at": {},
    memberships: {},
    permissions: {},
    subjects: {},
    // Modes: "managed", "custom". The default is "managed".
    quotes: { mode: "managed" },
  },
});
```

## Client

The block has no React entry yet. Its server-side TypeScript is in `better-supabase/blocks/quotes`.

## Events

- `quote.accepted`
- `quote.changes_requested`
- `quote.created`
- `quote.expired`
- `quote.rejected`
- `quote.revised`
- `quote.sent`
- `quote.updated`
- `quote.viewed`
- `quote.withdrawn`

## Related blocks

Requires: [memberships](https://bettersupabase.com/blocks/memberships.md), [permissions](https://bettersupabase.com/blocks/permissions.md), [subjects](https://bettersupabase.com/blocks/subjects.md)

Works with: [outbox](https://bettersupabase.com/blocks/outbox.md), [notifications](https://bettersupabase.com/blocks/notifications.md), [numbering](https://bettersupabase.com/blocks/numbering.md), [legal-entities](https://bettersupabase.com/blocks/legal-entities.md), [deals](https://bettersupabase.com/blocks/deals.md), [relations](https://bettersupabase.com/blocks/relations.md), [catalog](https://bettersupabase.com/blocks/catalog.md), [automations](https://bettersupabase.com/blocks/automations.md), [orders](https://bettersupabase.com/blocks/orders.md), [invoices](https://bettersupabase.com/blocks/invoices.md), [inventory](https://bettersupabase.com/blocks/inventory.md), [templates](https://bettersupabase.com/blocks/templates.md), [imports](https://bettersupabase.com/blocks/imports.md)

## Recipes

- [Quote builder](https://bettersupabase.com/recipes/quote-builder.md): A quote with line items, discounts and totals in minor units, sent for acceptance.
