feat: track annual tax settlement (Steuerbescheid) on /reports/tax-quarter/#196
Merged
Conversation
Adds Nachzahlung / Erstattung tracking to /reports/tax-quarter/.
Previously the page only showed quarterly advance payments (Vorauszahlungen)
with no way to record what the Finanzamt actually assessed after filing.
Model: TaxYearNote gains two nullable fields:
settlement_amount — positive = Nachzahlung, negative = Erstattung
settlement_date — date of the Bescheid
View: tax_quarter_overview passes the settlement + net tax position
(advance payments + settlement) to context.
save_tax_year_note accepts the two new fields via the existing
/reports/tax-summary/note/ endpoint.
Template: new "Steuerbescheid" section below the quarterly table with an
Alpine.js inline editor, result display (colour-coded owe/refund), and
net-tax-position line. Template fully wrapped in {% trans %} per P-039.
CSS: .settlement-result / .settlement-result--owe / --refund added to
tailwind.css; no inline styles.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/reports/tax-quarter/previously only tracked quarterly advance payments (Vorauszahlungen) with no way to record the annual settlement outcomeChanges
TaxYearNotemodel: two new nullable fields (settlement_amount,settlement_date) + migration 0008save_tax_year_noteendpoint extended to accept both fields (existing/reports/tax-summary/note/URL, no new routes)tax_quarter_overviewfetches and passes settlement data + net position to context.settlement-result,.settlement-result--owe,.settlement-result--refundintailwind.cssTest plan
/reports/tax-quarter/?year=2025— Steuerbescheid section shows "No assessment recorded yet" with a "Record assessment" button🤖 Generated with Claude Code