Merge origin/dev-4.7.0: Steuer-Feature (Preismodus + DB-gestützte Befreiungsgründe)

Konflikte in den Steuer-Dateien zugunsten der weiterentwickelten lokalen Version
aufgelöst: vat_pricing_mode (Preismodus), DB-gestützte tax_exemption_reasons mit FK,
typisierte Request-DTOs, Event-Steuer-Snapshot. origin/dev-4.7.0 enthielt eine
frühere Teilmenge desselben Features.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-10 14:34:50 +02:00
co-authored by Claude Opus 4.8
10 changed files with 329 additions and 8 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class TaxExemptionReason extends CommonModel
*/
public function invoiceText(?string $customNote = null): string
{
return $this->requires_note ? trim((string)$customNote) : $this->invoice_text;
return $this->requires_note ? trim((string) $customNote) : $this->invoice_text;
}
/**
@@ -56,7 +56,7 @@ class TaxExemptionReason extends CommonModel
public static function options(): array
{
return self::all()
->map(static fn(self $reason): array => [
->map(static fn (self $reason): array => [
'value' => $reason->slug,
'label' => $reason->name,
'text' => $reason->requires_note ? '' : $reason->invoice_text,