Resource Allocation Guide
Learn how to allocate equipment and services to projects, configure maintenance schedules, and manage resource lifecycles.Overview
Resources in Mantis represent physical equipment or services that are deployed to client projects. Each resource has:- Status tracking (DISPONIBLE → RENTADO → DISPONIBLE)
- Cost management (rental and maintenance costs)
- Maintenance scheduling (based on frequency types)
- Commitment dates (operation start and end dates)
Mantis supports two resource types: EQUIPO (physical equipment like tanks, pumps) and SERVICIO (services like maintenance contracts).
Adding Resources to a Project
Open the Project
Navigate to the project detail view and select the Recursos Asignados (Assigned Resources) tab.
Click 'Asignar Recursos'
Click the Asignar Recursos button in the top-right corner. This opens the resource allocation form at
/projects/<id>/resource-form.Search and Select Resources
Use the autocomplete search field to find available resources:Search by:
- Resource code (e.g., “TQ-001”)
- Equipment type (e.g., “Tanque”, “Bomba”)
- Description
Physical equipment can only be assigned to one project at a time. Services can be assigned to multiple projects.
Configure Each Resource
For each selected resource, configure the following in the table:
Required Fields
Fecha Inicio (Start Date) *- The date when this resource begins operation on the project
- Must be on or after the project start date
- This date triggers the status change from DISPONIBLE → RENTADO
Cost Configuration
Costo Alq (Rental Cost)- Daily rental rate for equipment (not applicable for services)
- Used for project cost calculations
- Defaults to 0.00
- Always “Diario” (Daily) for equipment
- N/A for services
Maintenance Configuration
Mant (Maintenance Checkbox)- Enable to schedule preventive maintenance
- Automatically checked for SERVICIO resources
- Optional for EQUIPO resources
- Choose frequency type:
- Por intervalo de días: Every N days (e.g., every 3 days)
- Días de la semana: Specific weekdays (Mon, Tue, etc.)
- Días del mes: Specific dates of the month (1-31)
- Cost per maintenance event
- Used for total project cost projections
Service-Specific Fields
Equipo Físico (Physical Equipment) - For services only- Optionally link the service to a specific physical equipment
- Used when a service (like pump maintenance) is tied to a particular equipment unit
- Select from dropdown of unavailable equipment already on the project
Add Multiple Resources
Repeat the search and configuration process for each resource. You can add multiple resources before saving.To remove a resource from the list before saving, click the trash icon in the Actions column.
Resource Status Lifecycle
Status Flow Diagram
Status Descriptions
DISPONIBLE (Available)
DISPONIBLE (Available)
Characteristics:
- Resource is in inventory and ready for deployment
- Appears in autocomplete search when adding resources
- No active project assignment
- Can be assigned to a new project
- Automatically changes to RENTADO when assigned to a project with a start date
RENTADO (Rented)
RENTADO (Rented)
Characteristics:
- Resource is currently deployed on an active project
- Has an operation_start_date set
- No operation_end_date (or end date is in the future)
- Appears with “ACTIVO” badge in resource table
- Changes back to DISPONIBLE when an operation_end_date is set (past or present)
- Changes to RETIRADO if resource is permanently removed from service
RETIRADO (Retired)
RETIRADO (Retired)
Characteristics:
- Resource is permanently out of service
- Appears with “RETIRADO” badge in red
- Cannot be edited or deleted
- Cannot be assigned to new projects
- Remains in historical records for reporting
- Manually set by admin when equipment is damaged, sold, or decommissioned
- This is a terminal state - cannot be reversed
Managing Existing Resources
Editing Resource Configuration
Open Edit Modal
From the Recursos Asignados tab, click the EDITAR button next to the resource you want to modify.
Modify Settings
You can update:
- Detailed description
- Rental cost
- Maintenance configuration (frequency, cost)
- Operation end date
Releasing Resources (Setting End Date)
When equipment is returned from a project:Set Operation End Date
Enter the date when the resource was returned or service ended in the Fecha Fin field.
Removing Resources
To delete a resource assignment from a project:Maintenance Frequency Configuration
Frequency Type: DAY (Interval Days)
Schedule maintenance every N days. Example Configuration:- Frequency Type: Por intervalo de días
- Interval Days: 3
- Result: Maintenance scheduled every 3 days starting from operation_start_date
- Oil changes (every 7 days)
- Filter cleaning (every 3 days)
- Regular inspections (every 30 days)
Frequency Type: WEEK (Weekdays)
Schedule maintenance on specific days of the week. Example Configuration:- Frequency Type: Días de la semana
- Weekdays: Mon, Wed, Fri (select by clicking buttons)
- Result: Maintenance scheduled every Monday, Wednesday, and Friday
- Weekly service visits (every Monday)
- Bi-weekly checks (Mon and Thu)
- Weekend maintenance (Sat and Sun)
Frequency Type: MONTH (Month Days)
Schedule maintenance on specific dates of each month. Example Configuration:- Frequency Type: Días del mes
- Month Days: 1, 15 (select from grid 1-31)
- Result: Maintenance scheduled on the 1st and 15th of each month
- Monthly calibration (1st of month)
- Semi-monthly service (1st and 15th)
- Quarterly maintenance (1st, 10th, 20th)
If you select a day number that doesn’t exist in a month (e.g., 31 in February), that occurrence will be skipped.
Cost Management
Understanding Cost Types
Mantis tracks two types of costs per resource: Rent Cost (Costo Alq)- Daily rental rate for equipment
- Calculated for each day the resource is RENTADO
- Only applies to EQUIPO resources
- Used formula:
total_rent = daily_rate × days_rented
- Cost per maintenance event
- Multiplied by the number of scheduled maintenance occurrences
- Applies to both EQUIPO and SERVICIO
- Used formula:
total_maintenance = cost_per_event × scheduled_events
Viewing Cost Summary
At the bottom of the Recursos Asignados tab, you’ll see: Total Recursos Card:- Count of all resources
- Breakdown: X Equipos y Y Servicios
- Sum of all rental costs + maintenance costs
- Displayed in GTQ (Quetzales)
- Updated in real-time as resources are added/removed
Cost Calculation Example
Scenario:- 5 water tanks @ Q50/day rent × 90 days = Q22,500
- 1 pump service @ Q200/maintenance × 30 events = Q6,000
- Total Project Cost: Q28,500
Resource Table Reference
The Recursos Asignados table displays:| Column | Description |
|---|---|
| # | ProjectResource ID |
| Tipo | EQUIPO or SERVICIO |
| Código | Resource code with status badges (ACTIVO/RETIRADO, EN USO) |
| Descripción | Detailed description of the resource |
| Costo | Daily rental cost (formatted as currency) |
| Frecuencia | Rental frequency (always “Diario” for equipment) |
| Fecha Inicio | Operation start date |
| Fecha Fin | Operation end date or “Indefinido” if ongoing |
| Acciones | EDITAR and ELIMINAR buttons |
Status Badges
- 🟢 ACTIVO (Green): Resource is currently rented to the project
- 🔴 RETIRADO (Red): Resource is retired and cannot be edited
- 🔵 EN USO (Blue): Resource is currently in a work sheet
Best Practices
When Adding Resources
- Verify Availability: Double-check equipment is available before promising to clients
- Set Accurate Start Dates: Align with actual deployment, not contract signing date
- Configure Maintenance Immediately: Set up maintenance schedules during resource assignment
- Document Descriptions: Use detailed descriptions to identify specific equipment units
- Review Costs: Verify rental and maintenance costs match current pricing
During Project Execution
- Weekly Status Review: Check for resources nearing scheduled end dates
- Maintenance Compliance: Use Calendar tab to ensure all scheduled maintenance is completed
- Cost Tracking: Monitor cumulative costs in the summary cards
- Update End Dates Promptly: Set end dates immediately when equipment is returned
- Document Issues: Use resource notes to track any problems or repairs
Before Project Closure
- Release All Resources: Ensure all resources have operation_end_date set
- Verify Status Changes: Confirm all equipment shows DISPONIBLE status
- Final Cost Review: Check total costs match invoicing
- Maintenance History: Review calendar for completed vs. scheduled maintenance
Common Issues and Solutions
Resource not appearing in autocomplete search
Resource not appearing in autocomplete search
Possible Causes:
- Resource status is RENTADO (assigned to another project)
- Resource is RETIRADO (retired from service)
- Wrong resource type (searching for equipment when you need service)
- Check resource status in inventory management
- If rentado, wait for return from other project or select different equipment
- Contact admin to reactivate retired resources if needed
Cannot edit or delete resource
Cannot edit or delete resource
Problem: EDITAR and ELIMINAR buttons are disabledCauses:
- Resource has “EN USO” badge (assigned to work sheet)
- Resource is “RETIRADO” (retired)
- For “EN USO”: Remove from work sheet first, then edit/delete
- For “RETIRADO”: Cannot edit retired resources - create new resource assignment if needed
Maintenance not appearing in calendar
Maintenance not appearing in calendar
Problem: Set maintenance schedule but no events show in Calendar tabCauses:
- Operation start date is in the future
- Maintenance checkbox not enabled
- Frequency configuration incomplete (no weekdays/monthdays selected)
- Edit resource and verify maintenance checkbox is checked
- Ensure frequency type has required selections:
- DAY: interval_days > 0
- WEEK: at least one weekday selected
- MONTH: at least one month day selected
- Check Calendar tab for correct month (use month navigation)
Cost calculation seems incorrect
Cost calculation seems incorrect
Problem: Total cost doesn’t match expectationsChecks:
- Verify cost entered is daily rate, not monthly
- Check operation_start_date and operation_end_date range
- Count scheduled maintenance events in calendar
- Ensure all resources are included in sum
- Use formula:
(daily_rate × days) + (maint_cost × events) - Export resource list to verify individual calculations
- Review calendar for actual vs. expected maintenance count
Resource shows as DISPONIBLE but cannot assign
Resource shows as DISPONIBLE but cannot assign
Problem: Status is DISPONIBLE but autocomplete doesn’t show itPossible Causes:
- Resource is already assigned to THIS project
- Browser cache showing stale data
- Check Recursos Asignados tab to see if already added
- Refresh the page to reload available resources
- Check resource filters in autocomplete component
Resource Workflow Example
Day 1: Resource Assignment
- Open project in Mantis
- Click “Asignar Recursos”
- Search and add:
- TQ-001 (Tanque 500 galones)
- TQ-002 (Tanque 500 galones)
- TQ-003 (Tanque 1000 galones)
- Set start date: Today
- Configure:
- Rental: Q50/day per tank
- Maintenance: Weekly (every Monday)
- Maintenance cost: Q100/event
- Save resources
Days 1-90: Active Rental
- Resources show status RENTADO
- Appear in project Recursos Asignados tab with ACTIVO badge
- Weekly maintenance events appear in Calendar
- Running costs accumulate: (3 tanks × Q50 × 90 days) + (3 tanks × Q100 × 12 weeks)
Day 90: Equipment Return
- Physical inspection confirms all tanks returned
- Edit each resource in Mantis
- Set operation_end_date: Today
- Save changes
- Status automatically changes: RENTADO → DISPONIBLE
Related Guides
Project Management
Learn how to create and manage projects
Calendar Scheduling
Schedule and track maintenance events
Document Management
Upload work sheets and custody chains
API Reference
For developers working with resource allocation:- Available Resources:
GET /api/projects/resources-available/ - Add Resources:
POST /api/projects/<id>/add-resources/ - Update Resource:
PUT /api/projects/<id>/resources/<resource_id>/ - Delete Resource:
DELETE /api/projects/<id>/resources/<resource_id>/ - Project Resources List:
GET /api/projects/<id>/resources/