SaaS Client is the client-side app that should be installed on each client ERPNext instance. It connects to the main SaaS Manager app to sync data and enforce user limits.
cd /path/to/your/bench
bench get-app sass_client
bench --site [your-client-site] install-app sass_client
bench --site [your-client-site] migrateAdd to site_config.json:
{
"saas_manager_url": "https://your-main-saas-manager.com",
"client_type": "ERP"
}The site will automatically register with the main SaaS Manager on first sync. The API key will be generated and should be added to site_config.json.
- Check Error Log for any sync errors
- Verify hourly sync is working
- Test user limit enforcement
- Automatic Data Sync: Syncs data hourly to main app
- User Limit Enforcement: Enforces user limits based on subscription package
- Site Registration: Automatically registers with main app
- Subscription Status Check: Checks subscription status from main app
The app syncs the following data to the main SaaS Manager:
- Total Sales Invoices count
- Total Credit Notes count
- Total Purchase Invoices count
- Total Stock Reconciliations count
- Active Users count
- Total Companies count
- Company name
- Client type
- IP address
- Site URL
- Subscription package info
- Subscription status
The app automatically enforces user limits when:
- Creating new users
- Enabling existing users
If the limit is reached, an error will be shown preventing user creation/enabling.
- Check
saas_manager_urlinsite_config.json - Verify API key is set
- Check Error Log for sync errors
- Ensure main app is accessible
- Verify subscription is active in main app
- Check package has
max_usersset - Verify API key is correct
- Check Error Log for errors
- Only aggregated statistics are sent
- No sensitive data is transmitted
- API key authentication
- Secure HTTPS communication
For issues:
- Email: akingbolahan12@gmail.com
- Check Error Log in ERPNext
- Review main app documentation