Teilnahmerechnungen erstellen

This commit is contained in:
2026-09-03 00:08:46 +02:00
parent a61344395a
commit 9c4c28e566
79 changed files with 4303 additions and 75 deletions
+6 -2
View File
@@ -80,11 +80,15 @@ class TenantTaxInformationTest extends TestCase
public function test_invalid_exemption_reason_fails(): void
{
// Neue Tenants tragen den DB-Default (Jugendhilfe); verglichen wird deshalb gegen den Stand
// vor der Aktion, nicht gegen null.
$before = $this->tenant->fresh()->tax_exemption_reason;
$response = $this->runAction(taxLiable: false, vatRate: 0, reason: 'not_a_reason');
$this->assertFalse($response->success);
// Unbekannter Slug wird nicht aufgelöst (null) → kein Speichern, Wert bleibt unverändert.
$this->assertNull($this->tenant->fresh()->tax_exemption_reason);
// Unbekannter Slug wird nicht aufgelöst → kein Speichern, Wert bleibt unverändert.
$this->assertSame($before, $this->tenant->fresh()->tax_exemption_reason);
}
public function test_custom_reason_requires_note(): void