Skip to content

fix: harden tenant-scoped revenue reporting - #142

Open
Taqi20 wants to merge 4 commits into
Base360-AI:mainfrom
Taqi20:fix/property-revenue-dashboard
Open

fix: harden tenant-scoped revenue reporting#142
Taqi20 wants to merge 4 commits into
Base360-AI:mainfrom
Taqi20:fix/property-revenue-dashboard

Conversation

@Taqi20

@Taqi20 Taqi20 commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Fixes tenant isolation and revenue reporting issues in the property dashboard.

Changes

  • Restores database-backed revenue calculation using DATABASE_URL.
  • Removes the unsafe tenant-agnostic mock fallback.
  • Adds tenant isolation to Redis revenue cache keys.
  • Enforces property ownership in the backend.
  • Scopes dashboard properties by tenant.
  • Preserves decimal revenue values in API responses.
  • Handles currency grouping safely.
  • Adds timezone-aware monthly revenue calculation using the property timezone.
  • Preserves tenant identity for local authentication.

Validation

  • Tenant-specific revenue behavior verified.
  • Property ownership checks verified.
  • Tenant-scoped dropdown verified.
  • Decimal and currency handling verified.
  • Timezone-aware monthly calculation verified.
  • Backend syntax checks passed.
  • Frontend production build passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants