erpsetup: top room for the Vertragsbedingungen block on page 2 #97

Merged
sharang merged 1 commits from fix/erpsetup-quotation-page2-top into main 2026-10-28 08:26:56 +00:00
Owner

What

Follow-up to #96, from the reprinted SAL-QTN-2026-00001: with page-break-inside: avoid the Vertragsbedingungen block now moves whole to page 2 — but page 2 has no letter head, so it sat flush against the top edge.

Adds 28px top padding to the block's wrapper. Padding rather than margin, because wkhtmltopdf drops a margin at a page break. When the block fits on page 1 it only widens the gap after the totals slightly.

Quotation-only; invoices untouched. go build/vet/test ./internal/erpsetup/ green; block still renders against the mocks.

Apply

After merge: re-run erpsetup against the live ERP, then reprint.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4

## What Follow-up to #96, from the reprinted SAL-QTN-2026-00001: with `page-break-inside: avoid` the Vertragsbedingungen block now moves whole to page 2 — but page 2 has no letter head, so it sat flush against the top edge. Adds 28px top padding to the block's wrapper. Padding rather than margin, because wkhtmltopdf drops a margin at a page break. When the block fits on page 1 it only widens the gap after the totals slightly. Quotation-only; invoices untouched. `go build`/`vet`/`test ./internal/erpsetup/` green; block still renders against the mocks. ## Apply After merge: re-run `erpsetup` against the live ERP, then reprint. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang added 1 commit 2026-10-28 08:22:12 +00:00
fix(erpsetup): top room for the Vertragsbedingungen block on page 2
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 24m38s
ci / image (pull_request) Skipped
212b1b30d0
With page-break-inside: avoid (#96) the block moves whole to page 2, which
has no letter head, so it sat flush against the top edge. Give the wrapper
28px top padding. Padding rather than margin: wkhtmltopdf drops a margin at
a page break. When the block fits on page 1 it only widens the gap after
the totals a little.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
sharang force-pushed fix/erpsetup-quotation-page2-top from 7c19113c27 to 212b1b30d0 2026-10-28 08:22:12 +00:00 Compare
sharang merged commit 04e52efe0f into main 2026-10-28 08:26:56 +00:00
Sign in to join this conversation.