Skip to main content

Overview

Company Management provides tools for creating and managing transport companies, assigning drivers, and monitoring company performance within the Viax platform.

Transport Company Entity

Companies are represented by a comprehensive entity:
admin/domain/entities/empresa_transporte.dart

Company States

Status: activoDisplay: ActivoCompany is operational and accepting drivers

Estado Enum Implementation

admin/domain/entities/empresa_transporte.dart

Company Statistics

Track platform-wide company metrics:
admin/domain/entities/empresa_transporte.dart

Total Companies

All registered transport companies

Active Companies

Currently operational companies

Total Drivers

Drivers across all companies

Verified Companies

Companies with verified credentials

Pending

Companies awaiting verification

Total Trips

Completed trips across all companies

Company Information Fields

Basic Information

Contact Information

Service Configuration

Performance Metrics

Vehicle Types

Companies can support multiple vehicle categories:

Motorcycle

motoStandard motorcycle transport

Car

carroPassenger vehicle service

Cargo Moto

moto_cargaMotorcycle delivery service

Cargo Van

carro_cargaVan/truck cargo service

Company Repository

Data access layer for company operations:
admin/domain/repositories/empresa_repository.dart

Company Provider

State management for company operations:
admin/presentation/providers/empresa_provider.dart

Commission Configuration

Set platform commission rates per company:
1

Navigate to Company

Select a company from the list
2

Edit Commission

Tap “Edit” and locate the commission field
3

Enter Percentage

Set the commission percentage (e.g., 15.0 for 15%)
4

Save Changes

Confirm to apply the new commission rate
Default commission is 15%. This can be customized per company based on agreements.

Assigning Drivers to Companies

Drivers can be assigned to companies for proper organization:
Drivers must be assigned to a company to ensure proper commission tracking and payment distribution.

Company Verification

Verify company credentials before activation:

Platform Earnings by Company

Track commissions owed by each company:
admin/presentation/screens/platform_earnings_screen.dart

Earnings Calculation

Company CopyWith Method

Immutable updates to company entities:
admin/domain/entities/empresa_transporte.dart

Company Filtering

Filter companies by various criteria:
Filter by activo, inactivo, suspendido, pendiente, or eliminado

Best Practices

Always verify company credentials (NIT, legal representative, insurance) before approving.
Set commission rates based on service type, volume, and agreements. Standard is 15%.
Regularly review company metrics like completion rate, driver count, and customer ratings.
Use the Platform Earnings screen to monitor commission payments from companies.
Use the notes field to document important changes or agreements with companies.

Driver Management

Assign drivers to companies

User Management

Manage company user accounts

Pricing Configuration

Set pricing by vehicle type