feat(erpsetup): BreakPilot document layout and list prices #51

Merged
sharang merged 2 commits from feat/erp-branding into main 2026-09-30 10:44:04 +00:00
Owner

erpsetup now also sets up how our documents look in ERPNext and the list prices.

  • Letter head BreakPilot: chevron and wordmark, sender block, footer with Sitz/Amtsgericht Freiburg HRB 736403, managing directors, USt-IdNr. and the company bank account (read live from ERPNext).
  • Company address (In Steinäckern 16, 78351 Bodman-Ludwigshafen) marked as the company address, only when none exists yet.
  • Print formats BreakPilot Rechnung / Auftragsbestätigung / Angebot (one template) as the defaults: details required by § 14 UStG, Leistungszeitraum (or "Leistungsdatum entspricht dem Rechnungsdatum"), reverse-charge note for EU/third-country templates, SEPA pre-notification with Gläubiger-ID and Mandatsreferenz.
  • Email template BreakPilot Rechnung as the default for Sales Invoice.
  • Company.sepa_creditor_id custom field.
  • List prices for all 22 SKUs on Standard Selling from the SKU sheet; created only when missing, never overwritten.

Templates are updated in place when they change (ensureFields); addresses and prices are only ever created.

Previewed on live ERPNext without saving (TEST-2026-0001, SAL-ORD-2026-00006-1). Tables only, since wkhtmltopdf does not support flexbox.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

erpsetup now also sets up how our documents look in ERPNext and the list prices. - **Letter head** BreakPilot: chevron and wordmark, sender block, footer with Sitz/Amtsgericht Freiburg HRB 736403, managing directors, USt-IdNr. and the company bank account (read live from ERPNext). - **Company address** (In Steinäckern 16, 78351 Bodman-Ludwigshafen) marked as the company address, only when none exists yet. - **Print formats** BreakPilot Rechnung / Auftragsbestätigung / Angebot (one template) as the defaults: details required by § 14 UStG, Leistungszeitraum (or "Leistungsdatum entspricht dem Rechnungsdatum"), reverse-charge note for EU/third-country templates, SEPA pre-notification with Gläubiger-ID and Mandatsreferenz. - **Email template** BreakPilot Rechnung as the default for Sales Invoice. - **Company.sepa_creditor_id** custom field. - **List prices** for all 22 SKUs on Standard Selling from the SKU sheet; created only when missing, never overwritten. Templates are updated in place when they change (`ensureFields`); addresses and prices are only ever created. Previewed on live ERPNext without saving (TEST-2026-0001, SAL-ORD-2026-00006-1). Tables only, since wkhtmltopdf does not support flexbox. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-30 10:11:38 +00:00
feat(erpsetup): BreakPilot document layout and list prices
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 23m49s
ci / image (pull_request) Skipped
834178b869
- Letter head "BreakPilot" (chevron, sender block, legal footer with
  register, directors, USt-IdNr. and bank), company address, one print
  format for Angebot / Auftragsbestätigung / Rechnung (§ 14 UStG details,
  Leistungszeitraum, reverse-charge note, SEPA pre-notification) set as
  default, and the invoice e-mail template.
- Company.sepa_creditor_id for the Gläubiger-ID on invoices.
- List prices from the SKU sheet on Standard Selling, created only where
  missing; prices changed in ERPNext are never overwritten.
- ensureFields updates templates we own when they drift; ensureListed
  handles autonamed docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-30 10:19:20 +00:00
fix(erpsetup): company name as registered, Breakpilot GmbH
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 23m53s
ci / image (pull_request) Skipped
15227629af
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 40a198c56f into main 2026-09-30 10:44:04 +00:00
Sign in to join this conversation.