Skip to content

Show Leistungsdatum on ticket invoices - #280

Draft
claude[bot] wants to merge 1 commit into
mainfrom
invoice-leistungsdatum
Draft

claude[bot] wants to merge 1 commit into
mainfrom
invoice-leistungsdatum

Conversation

@claude

@claude claude Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Requested by Richard Hartmann · Slack thread

Before: programmier.con ticket invoices show Rechnungsdatum and Fälligkeitsdatum (or the Bezug line on corrections/cancellations), but no Leistungsdatum, which is a mandatory invoice field per § 14 Abs. 4 Nr. 6 UStG.

After: all three document types (Rechnung, Rechnungsberichtigung, Stornorechnung) show the conference date as Leistungsdatum in the meta block below the Rechnungsdatum, e.g. Leistungsdatum: 25.–26.11.2026 (a single date when the conference is one day).

How: the paid hook and the invoice-lifecycle endpoint now load the conference's start_on/end_on and record them in the invoice snapshot (service_date_start/service_date_end in snapshot_json); the PDF renders the formatted range from the snapshot. A Stornorechnung keeps the referenced invoice's dates; for snapshots written before this change it falls back to the conference dates. If no date is known at all, the line is omitted and a warning is logged instead of failing. Code-only: no schema changes.

Already-issued invoices are unchanged (issued documents stay frozen). The Directus CMS extension needs a redeploy for this to take effect.

Tests: npm run prettier:check, npm run lint, npm test and npm run build pass in the extension bundle; new tests cover the date formatting, the snapshot fields, the storno fallback and the rendered Leistungsdatum line for all three document kinds.


Generated by Claude Code

Invoices, corrections and cancellations now print the conference date(s)
as Leistungsdatum (§ 14 Abs. 4 Nr. 6 UStG) in the meta block. The dates
are recorded in the invoice snapshot; cancellations of snapshots written
before this change fall back to the conference's start_on/end_on. When
no date is known the line is omitted and a warning is logged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FBHiR6NFRe6QR5SBjSv4nw
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
programmierbar-website Ready Ready Preview Oct 20, 2026 2:56pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 0dcb4f7c Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant