Statistiken/Abo: Kundenfeedback 2026-07-24 komplett umgesetzt + Steuern: DATEV-Fixes 08+09/2025 (Sammel-Commit Branch-WIP)
Feedback-Umsetzung (dev/2026-07-22/feedback-analyse-2026-07-24.md, alle 10 Punkte):
- VIP-Statistik: eigener Berater ('ich', Linie 0) in Neue-Kundenabos- und beiden Top-10-Listen; Top-10-Umsatz sortiert nach abgerechneten Ist-Punkten + Abo-Anzahl-Spalte; Fußnote nicht-payline-wirksame Punkte (SalesVolumePoints::nonPaylinePoints)
- Führungskräfte-Liste: beide Sichten 'direkt' (an nächster FK abgeschnitten, additiv) und 'gesamt' (komplette Downline), Gesamt-Spalte nach Kundenzählweise
- Team-Abos: je Ebene 'abgerechnet (Monat)' und 'bis zum 25. erwartet'; Payline-Karte mit Teamabo-/Kundenabo-Zählern
- Incentive-Live-Ranking: Qualifizierte zuerst nummeriert (fixt auch isWinner rank<=max_winners)
- Porto: Netto-/Brutto-Kennzeichnung (Berater netto, Endkunden inkl. MwSt., portal_view-Flag; auch CRM-/Shop-Warenkorb + Checkout), Yard::shipping_tax-Fix
- Struktur-Ansicht: Abo-Badges 'A' (eigenes Abo) und '(n)' (Kundenabos) je Teampartner, gebatcht
- Abo-Löschung: Softdelete setzt active=0 (UserAbo deleting-Hook) + Bereinigungs-Migration für gelöschte-aber-aktive Abos
- Doku: technische Analyse + Kundinnen-Feedback-Dokument unter dev/2026-07-22/
- Tests: IncentiveRankingTest, TeamStructureAboBadgesTest, YardShippingTaxTest (neu); BackofficeStatisticsListsTest, TeamAboOverviewTest, PaylineForecastServiceTest, AboAdminDeleteTest, AboOneTimeViewTest erweitert
Außerdem enthalten (Branch-WIP vor dem Feedback): DATEV-Abgleich-Fixes 08+09/2025, USt-ID-Live-Validierung sowie restliche unkommittete Stände (u. a. Abo-Pause-Sprachkeys).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c06740b9be
commit
d4e9d108ad
137 changed files with 7610 additions and 2955 deletions
43
tests/Unit/Controllers/SiteControllerTemplateGuardTest.php
Normal file
43
tests/Unit/Controllers/SiteControllerTemplateGuardTest.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\Web\SiteController;
|
||||
use Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
function isRenderableTemplate(string $template): bool
|
||||
{
|
||||
$controller = new SiteController;
|
||||
$method = new ReflectionMethod($controller, 'isRenderableTemplate');
|
||||
|
||||
return $method->invoke($controller, $template);
|
||||
}
|
||||
|
||||
it('blocks controller-backed templates in the catch-all route', function (string $template) {
|
||||
expect(isRenderableTemplate($template))->toBeFalse();
|
||||
})->with([
|
||||
'checkout',
|
||||
'checkout-final',
|
||||
'checkout-is-final',
|
||||
'checkout-error',
|
||||
'card',
|
||||
'kontakt',
|
||||
'registrierung',
|
||||
'widerruf',
|
||||
]);
|
||||
|
||||
it('blocks blade partials starting with an underscore', function () {
|
||||
expect(isRenderableTemplate('_categories'))->toBeFalse();
|
||||
});
|
||||
|
||||
it('blocks templates that do not exist', function () {
|
||||
expect(isRenderableTemplate('does-not-exist'))->toBeFalse();
|
||||
});
|
||||
|
||||
it('allows plain content templates', function (string $template) {
|
||||
expect(isRenderableTemplate($template))->toBeTrue();
|
||||
})->with([
|
||||
'aloevera',
|
||||
'karrierechancen',
|
||||
'vorteile',
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue