Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Lease setup wizard
Rewrite the Draft lease UI to the setup-wizard pattern contracts and rental
agreements use (~/components/Setup, x+/rental-agreement+/$id.setup*). An
active lease keeps its page.
Precedent copied file for file: x+/rental-agreement+/{new,$id,$id._index,$id.details,$id.setup,$id.setup._index,$id.setup.*}.tsx,
modules/sales/ui/Rentals/{RentalSetupSteps,RentalAgreementDetailsForm,RentalAgreementBilling,RentalAgreementAccounting,RentalUnitsGrid}.tsx,
draftRentalAgreementSetupPath (sales.server.ts).
Steps: Details → Payments → Accounting → Review.
-
path.to.leaseSetup(id, step);draftLeaseSetupPathinpurchasing.server.ts.
-
LeaseSetupSteps+leaseSetupSteps+useLeaseTermSave(posts one term toleaseUpdate).
-
LeaseDetailsForm(replacesLeaseForm): Lessor, Leased Asset, Term, More Details inSetupBody/SetupSection; payment and accounting terms carried as hidden fields; footer Next.
-
new.tsx→SetupFrame; creates the Draft, redirects tosetup/payments.
-
$id.setup.tsxshell,$id.setup._index.tsx,$id.setup.details.tsx(saves; cuts rows again when a date changed and rows exist).
-
$id.setup.payments.tsx:LeasePaymentTerms(amount, frequency, timing, escalation; each saves on its own and cuts the rows again) +LeasePaymentsGrid(editable cells via$id.payments.$paymentId.update.tsx, add, delete).
-
$id.setup.accounting.tsx:LeaseAccounting(discount rate, fair value, economic life, purchase option, switches, live classification + override).
-
$id.setup.review.tsx: summary, gaps, commencement preview; footer Save as Draft / Activate.
-
$id.tsxrenders the setup full-page;$id._index/$id.detailssend an editor's Draft to setup. Remove the Draft-only page affordances the wizard replaces.
-
- Docs (
leases.mdx, purchasing AGENTS.md, playbook), design-archetype note, typecheck, Biome, lingui, browser test.
- Docs (