ERP
The erp preset installs parties, a catalog, stock by location, quotes priced from the catalog, orders that invoice when paid, employees with time and leave, and expenses.
The erp preset is for a small ERP in the style of Odoo or NetSuite: sell
from a catalog, keep stock per location, quote and invoice customers, and
track the people who do the work.
Config
import { defineConfig } from "better-supabase/config";
export default defineConfig({ preset: "erp" });npx better-supabase init --preset erp starts a new project from it, and
npx better-supabase add --preset erp adds it to one you have
(CLI).
Blocks
The preset is saas plus these blocks, and
whatever they require:
| Block | Role in the app |
|---|---|
| contacts | Customers and suppliers |
| catalog | Products, variants and price lists |
| inventory | Stock per variant and location, and purchase orders |
| assets | The warehouses and sites stock is kept at |
| quotes | Quotes for a customer, priced from the catalog |
| orders | Orders, their payment and fulfilment |
| invoices | Invoices and their payments, on the ledger |
| numbering | Gapless sequences for your own document numbers |
| employees | The org chart, with each member's employee record |
| time-tracking | Timesheets with weekly approval |
| leave | Leave requests and balances |
| expenses | Expense reports with receipts, policies and approval |
| saved-views | Saved filters for each list |
How the blocks connect
The blocks pick each other up when they are installed together, with no config:
- A quote line that names a catalog variant takes its price and title when
it leaves them out (quotes). A line with no price
for the quote's currency fails with
LINES_INVALID. - A paid order creates, issues and pays an invoice and returns its id (orders). Orders paid before invoices was installed have no invoice.
- Inventory keeps its locations in the assets registry, so a warehouse is an asset (inventory).
- Time entries and leave requests carry the
employee_idof their member, which employees keeps current when a member's employee record changes (employees).
With ReUI
- Data Grid for orders and invoices, with Filters on status and customer.
- A Badge for each invoice's status (draft, issued, paid, void).
- Kanban for open quotes by status.
Last updated on
CMS
The cms preset installs pages and posts with locales and scheduled publishing, versions, publish approvals, public media, tags, comments and search.
Product information
The pim preset installs a catalog with sales channels, translations and public product media, plus custom fields, imports, bulk edits, tags, saved views and search.