Run this page to initialise and diagnose the system
← Login Dashboard →
✓ All checks passing — system is ready. Go to dashboard →

System Checks

DB connected OK
Selling point exists OK
Active selling point OK
Season exists OK
Active season OK
Users exist OK
Splits seeded OK
Currency seeded OK
Statutory seeded OK
Charge types seeded OK
Ticket check letters OK

Current Session

userid (not set)
username (not set)
selling_pointid (not set)
seasonid (not set)
season_name (not set)

Selling Point

Active: Vision Leaf Tobacco
IDNameCodeActive
1 Vision Leaf Tobacco VL Yes
2 Horizon Leaf Tobacco HTF Yes
3 Aqua Tobacco AQT Yes
4 Servemox Tobacco Company SVM Yes

Season

Active: 2025/2026
IDDescriptionActive
1 2025/2026 Yes

Users

IDUsernamePasswordActiveAdmin
1 sysadmin bright Yes Admin
2 bkaponda 123456 Yes Admin
If sysadmin exists, submitting will reset its password and ensure admin rights are set.

Seed Lookup Tables

All seeded

Seeds required lookup tables: splits (0–15), currency (USD, ZiG), charge_type, statutory, ticket_check_letter. Safe to run multiple times — skips tables that already have data.

Multi-Floor Access Control

Table exists

Creates the user_selling_points table that controls which users can log into which selling points. Required for running parallel sales across multiple floors. Safe to run multiple times. Automatically assigns sysadmin to all active floors.

Table exists — go to Users to assign each user to their selling point(s).

What to do after setup

  1. Create a Selling Point above and activate it
  2. Create a Season above and activate it
  3. Click ↺ Reload Session (while logged in) so the dashboard picks up the new IDs
  4. Go to Settings → set today's selling date + exchange rate
  5. Add Buyers and their grades
  6. Add Transporters and assign growers to them
  7. Start the daily workflow: Scale → Junus → Tickets → Floor → Balance → Sales Sheets
Dashboard Settings Buyers Transporters Growers