erpsetup: Vertragsbedingungen block on the Quotation print format #95

Merged
sharang merged 1 commits from feat/erpsetup-quotation-vertragsbedingungen into main 2026-10-27 14:32:54 +00:00
Owner

What

From the Angebot review (B2B-SaaS completeness): the Quotation PDF lacked the contractual terms an offer needs. Adds a Quotation-guarded Vertragsbedingungen block to the shared documentHTML print format — Vertragsart, Vertragsbeginn, Laufzeit/Kündigung, Abrechnung, monatliche Vergütung + Rabattdauer, Mehrverbrauch, Vertragsgrundlagen, Annahme. Plus the 14-day SEPA Vorabinformation on the non-invoice Zahlungsart line, and a "Monatlicher Gesamtbetrag" label (fixes the "1 Monat = one-off" misread).

Safety

Every new block is doc.doctype == "Quotation" (the Vorabinfo is in the not is_inv branch), so the GoBD Sales Invoices and Auftragsbestätigungen are untouched. go build, go vet and go test ./internal/erpsetup/ all green.

Terms (owner decisions, 2026-10-27)

No minimum term (monthly cancellable, 1 month to month-end) · discount permanent incl. renewals · SEPA-Lastschrift 21 days · per-Prüfung overage. Vertragsgrundlagen renders a placeholder until the SaaS-AGB / SLA / AVV / TOMs land in the portal document store.

Apply + follow-ups (not in this PR)

  • Run erpsetup against the live ERP to push the updated Print Format, then regenerate and review the quotation PDF before release.
  • Supersede SAL-QTN-2026-00001 (amend → new version) and reconcile the "4 Prüfungen pro Tag" line to the catalogue's monthly-quota model (resolves the 10-vs-5 Prüfobjekte / 490-vs-1490 pilot-price mismatch).
  • SEPA: a signed mandate must exist before the first Einzug; first invoice falls back to Überweisung until then.
  • später: structured per-field Custom Fields on Quotation/Sales Order/Sales Invoice; the versioned portal contract docs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4

## What From the Angebot review (B2B-SaaS completeness): the Quotation PDF lacked the contractual terms an offer needs. Adds a **Quotation-guarded Vertragsbedingungen block** to the shared `documentHTML` print format — Vertragsart, Vertragsbeginn, Laufzeit/Kündigung, Abrechnung, monatliche Vergütung + Rabattdauer, Mehrverbrauch, Vertragsgrundlagen, Annahme. Plus the **14-day SEPA Vorabinformation** on the non-invoice Zahlungsart line, and a **"Monatlicher Gesamtbetrag"** label (fixes the "1 Monat = one-off" misread). ## Safety Every new block is `doc.doctype == "Quotation"` (the Vorabinfo is in the `not is_inv` branch), so the **GoBD Sales Invoices and Auftragsbestätigungen are untouched**. `go build`, `go vet` and `go test ./internal/erpsetup/` all green. ## Terms (owner decisions, 2026-10-27) No minimum term (monthly cancellable, 1 month to month-end) · discount permanent incl. renewals · SEPA-Lastschrift 21 days · per-Prüfung overage. `Vertragsgrundlagen` renders a placeholder until the SaaS-AGB / SLA / AVV / TOMs land in the portal document store. ## Apply + follow-ups (not in this PR) - Run `erpsetup` against the live ERP to push the updated Print Format, then regenerate and **review the quotation PDF before release**. - **Supersede** `SAL-QTN-2026-00001` (amend → new version) and reconcile the "4 Prüfungen pro Tag" line to the catalogue's monthly-quota model (resolves the 10-vs-5 Prüfobjekte / 490-vs-1490 pilot-price mismatch). - SEPA: a signed mandate must exist before the first Einzug; first invoice falls back to Überweisung until then. - *später:* structured per-field Custom Fields on Quotation/Sales Order/Sales Invoice; the versioned portal contract docs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang added 1 commit 2026-10-27 09:31:15 +00:00
feat(erpsetup): Vertragsbedingungen block on the Quotation print format
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 24m47s
ci / image (pull_request) Skipped
276670d0eb
Angebot review (§3/§5/§6): the Quotation PDF lacked the contractual terms a
B2B-SaaS offer needs. Add a Quotation-GUARDED Vertragsbedingungen block to the
shared documentHTML (Vertragsart, Vertragsbeginn, Laufzeit/Kündigung, Abrechnung,
monatliche Vergütung + Rabattdauer, Mehrverbrauch, Vertragsgrundlagen, Annahme),
the 14-day SEPA Vorabinformation on the non-invoice Zahlungsart line, and a
"Monatlicher Gesamtbetrag" label so the recurring nature is unambiguous (the
"1 Monat" misread). Every new block is doc.doctype == "Quotation" (or the
not-is_inv branch), so the GoBD Sales Invoices are untouched.

Terms per the owner's decisions 2026-10-27: no minimum term (monthly cancellable,
1 month to month-end), permanent discount incl. renewals, SEPA-Lastschrift 21
days, per-Prüfung overage. Vertragsgrundlagen renders a placeholder until the
SaaS-AGB/SLA/AVV/TOMs land in the portal document store. Structured per-field
Custom Fields are a documented follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang merged commit d14f381164 into main 2026-10-27 14:32:54 +00:00
Sign in to join this conversation.