feat(erpsetup): quotes name the Leistungsbeschreibung versions; Prüfwerk 1.0.3 #117

Merged
sharang merged 3 commits from feat/erp-lb-versions-2 into main 2026-11-09 10:25:59 +00:00
Owner

Replaces #116 (its second commit subject was too long for commitlint).

Why: every Leistungsbeschreibung says in § 1 that the version named in the quote or order confirmation applies. Our quotes named no version ("in der jeweils vereinbarten Fassung"). With Prüfwerk now at 1.0.3, that needs to be explicit.

Changes

  • Vertragsgrundlagen (quote print format): the default text lists the Leistungsbeschreibungen by module and version. Breakpilot Plattform is always listed. A module is listed when the quote has one of its lines:

    Module Version Item codes
    Prüfwerk 1.0.3 CRA-CSA-CLD-*
    Managed Git 1.0.0 INF-GIT-CLD-*
    Build-Runner 1.0.0 INF-CI-CLD-*
    Werkpilot 1.0.0 DEV-WP-*
    Firmwerk 1.0.0 DEV-FWK-*

    The table lives in catalog.go (lbVersions); raising a version is a one-line change. A per-document vertragsgrundlage still replaces the whole text. Starter bundle quotes are covered because the bundle's modules are their own lines.

  • CRA-CSA-CLD-STD description: "… SPS-Programmen mit SBOM und Codegraph: …" (LB Prüfwerk 1.0.3 § 4).

  • Spelling: "Breakpilot-Kundenportal" (was BreakPilot) in that sentence.

  • Spelling (second commit): customer-visible text now says Breakpilot: the invoice e-mail subject ("Rechnung … – Breakpilot"), its sign-off ("Ihr Breakpilot-Team") and the logo alt text. ERPNext record names (print formats, letter head, e-mail template, item group) keep BreakPilot, because renaming them would create new records. TestCustomerTextSpellsBreakpilot keeps the customer text on Breakpilot.

  • Dependencies (third commit): golang.org/x/net 0.60.0 → 0.62.0 for CVE-2026-78661 (HIGH, DoS in x/net/html), which failed the Trivy step. The registry does not import x/net/html, so it was not reachable. It brings x/crypto 0.58.0, x/sync 0.24.0, x/sys 0.49.0 and x/text 0.43.0 along.

Example (rendered with jinja2's sandbox): a quote with Starter bundle, Prüfwerk, Managed Git and Werkpilot reads "… die Leistungsbeschreibungen (Breakpilot Plattform 1.0.0, Prüfwerk 1.0.3, Managed Git 1.0.0, Werkpilot 1.0.0), das SLA …".

Tests: a new TestQuoteNamesLBVersions; go test ./... passes.

After merge: a normal erpsetup run against the live ERP writes the print format and the item description. -sync-catalog isn't needed.

🤖 Generated with Claude Code

Replaces #116 (its second commit subject was too long for commitlint). **Why:** every Leistungsbeschreibung says in § 1 that the version named in the quote or order confirmation applies. Our quotes named no version ("in der jeweils vereinbarten Fassung"). With Prüfwerk now at 1.0.3, that needs to be explicit. **Changes** - **Vertragsgrundlagen (quote print format):** the default text lists the Leistungsbeschreibungen by module and version. Breakpilot Plattform is always listed. A module is listed when the quote has one of its lines: | Module | Version | Item codes | |---|---|---| | Prüfwerk | 1.0.3 | `CRA-CSA-CLD-*` | | Managed Git | 1.0.0 | `INF-GIT-CLD-*` | | Build-Runner | 1.0.0 | `INF-CI-CLD-*` | | Werkpilot | 1.0.0 | `DEV-WP-*` | | Firmwerk | 1.0.0 | `DEV-FWK-*` | The table lives in `catalog.go` (`lbVersions`); raising a version is a one-line change. A per-document `vertragsgrundlage` still replaces the whole text. Starter bundle quotes are covered because the bundle's modules are their own lines. - **CRA-CSA-CLD-STD description:** "… SPS-Programmen mit SBOM und Codegraph: …" (LB Prüfwerk 1.0.3 § 4). - **Spelling:** "Breakpilot-Kundenportal" (was BreakPilot) in that sentence. - **Spelling (second commit):** customer-visible text now says Breakpilot: the invoice e-mail subject ("Rechnung … – Breakpilot"), its sign-off ("Ihr Breakpilot-Team") and the logo alt text. ERPNext record names (print formats, letter head, e-mail template, item group) keep BreakPilot, because renaming them would create new records. `TestCustomerTextSpellsBreakpilot` keeps the customer text on Breakpilot. - **Dependencies (third commit):** golang.org/x/net 0.60.0 → 0.62.0 for CVE-2026-78661 (HIGH, DoS in x/net/html), which failed the Trivy step. The registry does not import x/net/html, so it was not reachable. It brings x/crypto 0.58.0, x/sync 0.24.0, x/sys 0.49.0 and x/text 0.43.0 along. **Example (rendered with jinja2's sandbox):** a quote with Starter bundle, Prüfwerk, Managed Git and Werkpilot reads "… die Leistungsbeschreibungen (Breakpilot Plattform 1.0.0, Prüfwerk 1.0.3, Managed Git 1.0.0, Werkpilot 1.0.0), das SLA …". **Tests:** a new `TestQuoteNamesLBVersions`; `go test ./...` passes. **After merge:** a normal `erpsetup` run against the live ERP writes the print format and the item description. `-sync-catalog` isn't needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 2 commits 2026-11-09 09:56:55 +00:00
Each Leistungsbeschreibung says the version named in the quote applies,
but the quote's Vertragsgrundlagen named none. The default text now lists
the LBs that apply by module and version: Breakpilot Plattform always,
each module when the quote has one of its lines (catalog.go lbVersions,
rendered into the print format as a Jinja expression over item_codes).
A per-document "vertragsgrundlage" still replaces the whole text.

- Prüfwerk at 1.0.3 (code graph, frozen 09.11.); all others at 1.0.0.
- CRA-CSA-CLD-STD description names SBOM and code graph (LB § 4).
- "Breakpilot-Kundenportal" (was BreakPilot) in that sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(erpsetup): Breakpilot in the invoice mail and the logo alt text
ci / shared (pull_request) Failing after 13s
ci / test (pull_request) Successful in 26m58s
ci / image (pull_request) Skipped
175703f062
Customer-visible text only. ERPNext record names (print formats, letter
head, e-mail template, item group) keep BreakPilot: renaming them would
create new records. A test keeps the customer text on Breakpilot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang added 1 commit 2026-11-09 09:58:49 +00:00
fix(deps): golang.org/x/net 0.62.0 for CVE-2026-78661
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 26m40s
ci / image (pull_request) Skipped
9b18968640
Trivy fails CI on golang.org/x/net v0.60.0 (HIGH, DoS in x/net/html via
crafted HTML). The registry does not import x/net/html, so it was not
reachable. x/net 0.62.0 brings x/crypto 0.58.0, x/sync 0.24.0, x/sys
0.49.0 and x/text 0.43.0 along. go build and go test ./... pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit f778cbb1a8 into main 2026-11-09 10:25:59 +00:00
Sign in to join this conversation.