feat(erpsetup): AB and invoice after the legal review (portal#66, #67) #59

Merged
sharang merged 1 commits from feat/erp-ab-invoice-review into main 2026-09-30 16:26:48 +00:00
Owner

Implements the review in platform/portal#66 (Auftragsbestätigung) and #67 (Rechnung):

  • Kundennummer: new customers K-00001… (naming series); printed only when a number exists. Existing customers keep their name (only the smoketest)
  • Product wording without "CRA-Prüfung" (RDG boundary, portal#65 §16); item descriptions follow the catalogue
  • AB: Leistungsbeginn, Abrechnungsintervall, Vertragsgrundlage (custom field, filled by hand), SEPA sentence depending on the mandate
  • Rechnung: SEPA block as pre-notification (Gläubiger-ID once set, Mandatsreferenz), Auftragsnummer
  • Payment terms "SEPA-Lastschrift 21 Tage" as the company default (user decision: 21 days, so the pre-notification reaches the customer 14 days before the debit)

E-invoicing (ZUGFeRD/XRechnung, #67) goes with sharang/orca-infra#120. Automatic Vertragsgrundlage (SaaS contract in the ERP, concluded on the switch from trial to paid) follows later.

Previewed with frappe.get_print on the live ERPNext (in memory, nothing saved).

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

Implements the review in platform/portal#66 (Auftragsbestätigung) and #67 (Rechnung): - **Kundennummer:** new customers K-00001… (naming series); printed only when a number exists. Existing customers keep their name (only the smoketest) - **Product wording** without "CRA-Prüfung" (RDG boundary, portal#65 §16); item descriptions follow the catalogue - **AB:** Leistungsbeginn, Abrechnungsintervall, Vertragsgrundlage (custom field, filled by hand), SEPA sentence depending on the mandate - **Rechnung:** SEPA block as pre-notification (Gläubiger-ID once set, Mandatsreferenz), Auftragsnummer - **Payment terms "SEPA-Lastschrift 21 Tage"** as the company default (user decision: 21 days, so the pre-notification reaches the customer 14 days before the debit) E-invoicing (ZUGFeRD/XRechnung, #67) goes with sharang/orca-infra#120. Automatic Vertragsgrundlage (SaaS contract in the ERP, concluded on the switch from trial to paid) follows later. Previewed with frappe.get_print on the live ERPNext (in memory, nothing saved). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-30 16:02:14 +00:00
feat(erpsetup): AB and invoice after the legal review (portal#66, #67)
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 23m48s
ci / image (pull_request) Skipped
7bcc8a33f2
- Kundennummer: new customers are numbered K-00001… (Selling Settings
  naming series); the line is printed only when the customer has a number,
  never the name again.
- Product wording: "Automatisierte Cybersecurity-Analyse … für
  CRA-bezogene Compliance-Prozesse" instead of "Automatische CRA-Prüfung"
  (no legal check, RDG); item descriptions now follow the catalogue.
- AB: Leistungsbeginn, Abrechnungsintervall (from the item units) and
  Vertragsgrundlage (custom field on order and invoice, by hand for now);
  SEPA sentence depends on whether a mandate is on file.
- Invoice: SEPA block as pre-notification (amount, date, Gläubiger-ID when
  set, Mandatsreferenz), Auftragsnummer as audit trail.
- Payment terms "SEPA-Lastschrift 21 Tage" as the company default, so the
  invoice reaches the customer 14 days before the debit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 6141e45811 into main 2026-09-30 16:26:48 +00:00
Sign in to join this conversation.