All blocks

Billing & commerce

Invoices

Invoices an organization sends its own customers: drafts with lines, a gapless number on issue, payments, credit notes, void and write-off, overdue and aging per currency, and invoices from accepted quotes.

DocsModes:managedcustom
terminal
npx better-supabase sql add invoices
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by invoices; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      subjects: {},
      // Modes: "managed", "custom". The default is "managed".
      invoices: { mode: "managed" },
    },
  },
});