feat(erp): erpsetup for live ERPNext, reserved tenant slugs #32

Merged
sharang merged 1 commits from feat/live-erpnext into main 2026-09-23 17:16:25 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 bcb0895480 feat(erp): erpsetup for live ERPNext, reserved tenant slugs
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 23m1s
ci / image (pull_request) Skipped
cmd/erpsetup applies what the registry expects in a live ERPNext:
tenant_id/tenant_slug custom fields on Customer and Lead, the Usage
Record doctype, and Frappe Webhooks (Sales Order submit, Sales
Invoice overdue, Payment Entry submit, Subscription cancelled) signed
with the registry's webhook secret. It checks before it creates, so it
can run again at any time, and -dry-run only reports. It ships in the
image as /erpsetup.

Tenant creation refuses slugs the portal serves itself (admin, start,
install, docs, …), mirroring the portal's signup check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-23 18:18:13 +02:00