fix(erpsetup): quote overage price, portal doc basis, USt-IdNr. glyph #99

Merged
sharang merged 1 commits from fix/erpsetup-quote-terms-overage into main 2026-10-28 08:40:07 +00:00
Owner

What

Follow-ups from the reprinted quotation PDF review:

  • Mehrverbrauch — the row named no price. It now shows only on quotes with a Prüfwerk item (CRA-CSA-*) and reads the per-check price from the CRA-CSA-CLD-SCAN Item Price on the quote's price list (catalogue: € 12,00). If no price exists it falls back to „gemäß der jeweils gültigen Preisliste“.
  • Vertragsgrundlagen — the default cited „die Versionsstände sind in der Anlage bezeichnet“, but no Anlage exists. Now: documents on request beforehand, available in the customer portal after signing. The per-quote vertragsgrundlage field still overrides it.
  • USt-IdNr. — the ERP server renders Arial as NimbusSans, which sets „Nr.“ as a single „№“ glyph (footer showed „USt-Id№“). A zero-width non-joiner keeps the letters. This touches the shared letter-head footer, so invoices printed from now on change too; issued invoices are untouched.

Checks

go vet, go test ./internal/erpsetup/ green. The Quotation block was rendered with Jinja for: Prüfwerk + price, Prüfwerk without price, no Prüfwerk (row absent).

Apply

After merge: run erpsetup, reprint the quote and check the footer and the Mehrverbrauch row.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4

## What Follow-ups from the reprinted quotation PDF review: - **Mehrverbrauch** — the row named no price. It now shows only on quotes with a Prüfwerk item (`CRA-CSA-*`) and reads the per-check price from the `CRA-CSA-CLD-SCAN` Item Price on the quote's price list (catalogue: € 12,00). If no price exists it falls back to „gemäß der jeweils gültigen Preisliste“. - **Vertragsgrundlagen** — the default cited „die Versionsstände sind in der Anlage bezeichnet“, but no Anlage exists. Now: documents on request beforehand, available in the customer portal after signing. The per-quote `vertragsgrundlage` field still overrides it. - **USt-IdNr.** — the ERP server renders Arial as NimbusSans, which sets „Nr.“ as a single „№“ glyph (footer showed „USt-Id№“). A zero-width non-joiner keeps the letters. This touches the shared letter-head footer, so invoices printed from now on change too; issued invoices are untouched. ## Checks `go vet`, `go test ./internal/erpsetup/` green. The Quotation block was rendered with Jinja for: Prüfwerk + price, Prüfwerk without price, no Prüfwerk (row absent). ## Apply After merge: run `erpsetup`, reprint the quote and check the footer and the Mehrverbrauch row. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang added 1 commit 2026-10-28 08:33:27 +00:00
fix(erpsetup): quote overage price, portal doc basis, USt-IdNr. glyph
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 24m54s
ci / image (pull_request) Skipped
b96f319380
- Mehrverbrauch: only on quotes with Prüfwerk, priced from the
  CRA-CSA-CLD-SCAN Item Price (falls back to the price list).
- Vertragsgrundlagen default no longer cites a missing Anlage: documents
  on request beforehand, in the customer portal after signing.
- USt-IdNr.: NimbusSans sets "Nr." as one № glyph; a ZWNJ keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang merged commit 0f536fc955 into main 2026-10-28 08:40:07 +00:00
Sign in to join this conversation.