MAS-ERP Platform Setup
First run only: connect the database, SMTP, and create the Super Admin. The system will then create the required schema, permissions, and policies automatically.
Checking current state...

1. Database

Oracle Cloud: use Host + Port + Service Name + User + Password. The ERP code does not need to change for each database; the provider adapter implements the same schema contract.

2. Email / SMTP

3. Initial Super Admin

Checking platform status...
MAS ERP
Select account and password:

🛡️ Super Admin — Company Management (Platform)

🔐 Security — Real Authentication

Authentication now uses Supabase Auth, ERP operational data uses PostgreSQL/JSONB with Tenant isolation through RLS. Legacy test-company data is not used here.

✅ Supabase Auth Connected
📚 Knowledge CenterMASA ready-question catalog
🧠 Market Learning / Defaults BankLearned scenarios and approved defaults
🏢 Company Management — Full Access

Select a company below to enter it temporarily with full Company Admin privileges. Its operational modules (work orders, finance, permissions, HR, etc.) will be available for management.

Company List (Edit / Suspend / Delete):

Loading companies... ⏳

...

🔔 Notifications Center
🔊 Notification Sound
Operational modules — each section appears once below.
Loading competitor pricing... ⏳

🌳 الهيكل التنظيمي المعتمد (Org Chart)

عرض المرؤوسين والمسؤوليات المباشرة حسب موقعك
👤 Company Admin
Loading organizational hierarchy... ⏳

🏘️ Compound & Community Management

Units, owners, dues, vehicles, services, visitors, maintenance, security and assemblies
Loading compound data... ⏳
📋 أوامر العمل (Work Orders)
Loading tasks... ⏳
👈 Select a work order from the list to view details

📦 المخزن والمعدات (WearHouse & HSE)

Inventory, issued assets and operational equipment
Loading warehouse inventory... ⏳
📅 إدارة الاجتماعات وحجز الغرف
Loading meetings... ⏳
👈 Select a meeting from the list to view details
💰 المالية — الفروع المالية
⚙️ Approval Configuration
Central configuration outside custody, advances, and allowance branches. Each policy type is independent; administrative approval is built from the Org Chart, and execution follows the permission matrix.
Choose the required finance branch. Opening custody in a new tab is optional.

🚗 Fleet Management & Mission Vehicle Booking

Current utilization, planned trips, drivers and vehicles — in one view
Loading fleet and requests... ⏳

🔧 Technician Assignment to Work Orders

See workload, planned assignments and technician availability
Loading technician requests... ⏳

🛡️ Roles & Permissions

Control access, roles and approval capabilities
Loading permissions... ⏳

✈️ إدارة التنقلات (طيران / أتوبيسات)

Travel requests, approvals and booked journeys
Loading transportation requests... ⏳

🏨 إدارة الإقامة (فنادق / إيجارات)

Hotels, rentals and approved stays
Loading accommodation requests... ⏳
👥 الموارد البشرية — طلبات الإجازات ورصيدها
جاري تحميل بيانات الإجازات... ⏳
👈 اختار طلب إجازة من القائمة عشان تشوف التفاصيل

🗂️ إدارة المراسلات والسكرتارية

Correspondence routing, ownership and follow-up
جاري تحميل المراسلات... ⏳
💻 طلبات الدعم الفني (IT)
جاري تحميل تذاكر الدعم الفني... ⏳
👈 اختار تذكرة من القائمة عشان تشوف التفاصيل