# Requests for quotation

> Requests for quotation to invited suppliers, their quotes per line, a side by side comparison and an award that marks the winner and can create the purchase order.

- Category: Billing & commerce
- Module: `rfqs`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/rfqs
- Page: https://bettersupabase.com/blocks/rfqs

## Install

```bash
npx better-supabase add rfqs
```

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 rfqs; add installs them too.
    "updated-at": {},
    memberships: {},
    permissions: {},
    subjects: {},
    // Modes: "managed", "custom". The default is "managed".
    rfqs: { mode: "managed" },
  },
});
```

## Client

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

## Events

- `rfq.awarded`
- `rfq.cancelled`
- `rfq.closed`
- `rfq.created`
- `rfq.opened`
- `rfq_quote.submitted`
- `rfq_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: [contacts](https://bettersupabase.com/blocks/contacts.md), [inventory](https://bettersupabase.com/blocks/inventory.md), [numbering](https://bettersupabase.com/blocks/numbering.md), [outbox](https://bettersupabase.com/blocks/outbox.md), [audit](https://bettersupabase.com/blocks/audit.md)
