feat(erpsetup): sales catalogue — SKU items, units, SEPA mandate fields (#48)
ci / shared (push) Successful in 14s
ci / test (push) Successful in 23m42s
ci / image (push) Successful in 34s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit was merged in pull request #48.
This commit is contained in:
sharangandClaude Opus 5.5 committed 2026-09-29 16:25:00 +00:00
1 parent f96525dd4d
commit 8a03be188d
4 files changed
+181 -9

No files matched your search

+4 -3
View File
@@ -1,12 +1,13 @@
// erpsetup — applies the live-ERPNext configuration the tenant-registry needs
// (custom fields, the Usage Record doctype, the Frappe Webhooks). Idempotent;
// (custom fields, the Usage Record doctype, the sales catalogue with SKU items
// and SEPA mandate fields, the Frappe Webhooks). Idempotent;
// run with -dry-run first. It never submits, cancels or deletes ERP documents.
//
// ERP_BASE_URL=https://erp.breakpilot.com ERP_API_KEY=… ERP_API_SECRET=… \
// ERP_WEBHOOK_SECRET=… erpsetup -webhook-url https://registry.breakpilot.com/v1/internal/erp/webhook -dry-run
//
// The API user needs System Manager for this run (it creates a DocType and
// Webhooks); the registry's day-to-day key can then have a narrower role.
// The API user needs System Manager for this run (it creates a DocType,
// Webhooks, items and custom fields); the registry's day-to-day key can then have a narrower role.
package main
import (