Project

General

Profile

Edit Copy Actions

Feature #9579

open

SaaS Billing Setup + Restore POS, Ecommerce & Landscaping Sidebar for Admin Roles

Added by Pavan Kumar Murala 29 days ago. Updated 29 days ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
07/06/2026
Due date:
07/06/2026 (29 days late)
% Done:

30%

Estimated time:
30:00 h
Spent time:

Description

Implement and fix Evergreen Farms (dbName: evergreen, slug: nursery/evergreen) as the main platform company so it can manage SaaS tenants and still operate POS, ecommerce, and field-service (landscaping) from the sidebar.

Backend

Map SaaS plans to company billingPlan (modules, features, capabilities, saasBilling)
Add tenant billing (renew, upgrade, top-up), usage metering, and Stripe webhooks
Reconcile legacy EVG plan on GET /nus-user/get-company: derive billingPlan.modules from features, map fieldService → landscaping, sync capabilities.*Enabled
Platform company helpers (isMainCompany, tenant filters, billing APIs)
Frontend

Platform admin: Billing & Revenue hub (all tenants, recharge status, payments)
Tenant: Settings → My Plan (usage, renew/upgrade/top-up); EVG shows platform-owner view
Fix sidebar gating so admin / manager / super_admin on EVG see POS, ecommerce, and landscaping menus
Improve platform tenant detection (dbName, slug, company_data) and persist dbName on company load
Acceptance criteria

EVG admin roles see POS, Admin (ecommerce), and Services/Quotes/Jobs (landscaping) in sidebar
get-company returns reconciled billingPlan and correct capability flags
Other tenants remain plan-gated; platform-only menus show only on EVG
Billing hub and My Plan work without “Billing not applicable to platform company” errors


Files


Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF