feat(store): complete partner store overhaul with mapping, household search, financial analytics, and resident notification system

This commit is contained in:
Developer
2026-07-02 12:47:50 +08:00
parent 647af45b99
commit c4cbdb42c7
20 changed files with 692 additions and 227 deletions

View File

@@ -36,6 +36,7 @@ class ResolveTenant
if ($headerCode) {
$tenant = Tenant::where('code', strtoupper((string) $headerCode))->first();
if (! $tenant) {
\Log::info("ResolveTenant: Header code not found: {$headerCode}");
return response()->json([
'success' => false,
'data' => null,
@@ -46,6 +47,9 @@ class ResolveTenant
}
} elseif ($headerId) {
$tenant = Tenant::where('uuid', $headerId)->first();
if (! $tenant) {
\Log::info("ResolveTenant: Header ID not found: {$headerId}");
}
}
// Fall back to the authenticated user's tenant.