Overview
The Orders module is the core of ElectroFix AI, allowing you to manage repair workflows from intake to delivery. Each order tracks customer equipment, symptoms, diagnostics, technician assignments, and repair status through a complete lifecycle.What You Can Do
- Create new repair orders for customer equipment
- Request AI-powered diagnostic analysis
- Track order status through 7 stages
- Assign technicians to orders
- View AI-generated cost estimates and repair recommendations
- Search and filter orders by customer, equipment, or technician
Accessing Orders
Navigate to Orders from the main navigation menu. You’ll see:- A grid view of all active orders
- Search bar to filter by ID, technician, customer, or equipment
- Total order count
- AI availability status for your subscription plan
- AI usage metrics (queries and tokens used this month)
Creating a New Order
Open the Order Form
Click the Nueva Orden button in the top-right corner. A modal dialog will open with the order creation form.
Select Customer
Choose the customer from the Cliente dropdown. This field is required.The equipment dropdown will automatically filter to show only equipment owned by the selected customer.
Select Equipment
Choose the equipment being serviced from the Equipo dropdown. Each option shows:
- Equipment brand
- Model
- Type (e.g., Refrigerator, Washing Machine)
Enter Symptoms
Describe the reported issues in the Síntomas reportados text area:
- Maximum 600 characters
- Minimum 5 characters required if requesting AI diagnosis
- Be specific for better AI analysis
Assign Technician
For Workers: Your name is automatically assignedFor Admins: Select from the dropdown of active company technicians (workers and admins)This field is required.
Set Estimated Cost (Optional)
Enter the preliminary cost estimate if known. This can be updated later based on AI recommendations or actual diagnosis.
Request AI Diagnosis (Optional)
Check Solicitar diagnóstico IA al guardar la orden to enable AI analysis:The AI will analyze:
- Probable causes of failure
- Estimated repair time
- Suggested replacement parts
- Labor cost estimates
- Parts replacement costs (if applicable)
- Technical advice for the repair
Order Form Fields
| Field | Type | Required | Validation |
|---|---|---|---|
| customer_id | Dropdown | Yes | Must be existing customer in your company |
| equipment_id | Dropdown | Yes | Must be existing equipment owned by selected customer |
| symptoms | Text area | Conditional | 5-600 characters (required if requesting AI) |
| technician | Text/Dropdown | Yes | Auto-filled for workers, selectable for admins |
| estimated_cost | Number | No | Minimum 0, supports decimals |
| request_ai_diagnosis | Checkbox | No | Only available on Enterprise/Developer Test plans |
Understanding Order Statuses
Orders progress through 7 distinct statuses:Recibido
Initial status when order is created. Equipment has been received and logged.
Diagnóstico
Technician is actively diagnosing the issue. AI recommendations available if generated.
Reparación
Repair work in progress. Parts may be ordered or installed.
Cotización
Quote has been prepared for customer approval. Set automatically when quote document is generated.
Listo
Repair complete and ready for customer pickup. Set automatically when invoice is generated.
Entregado
Equipment returned to customer. Final status for completed repairs.
No reparado
Repair declined or not feasible. Equipment returned without repair.
Viewing Order Details
Click Detalles on any order card to open the full order view:Customer and Equipment Section
- Customer name and email
- Equipment brand, model, and serial number
- Order creation and last update timestamps
Status Management
Change the order status by clicking any status button. The current status is highlighted in blue.Symptom Report
View the original customer-reported issues.Cost Estimate
The estimated repair cost displays prominently. Update this as the diagnosis progresses.AI Analysis (If Generated)
When AI diagnosis was requested, you’ll see: Probable Causes (ai_potential_causes)
- List of likely failure reasons based on symptoms and equipment type
ai_estimated_time)
- Suggested duration for the repair
ai_suggested_parts)
- Recommended replacement components
- Labor Cost:
ai_cost_repair_labor- Suggested cost for repair work - Parts Cost:
ai_cost_replacement_parts- Estimated parts expense (if replacement needed) - Total Cost:
ai_cost_replacement_total- Combined cost when parts are required
ai_technical_advice)
- Specific recommendations for performing the repair
- Tokens used for this AI analysis
- Diagnosis generation timestamp
AI diagnostics are generated only once when the order is created with the AI checkbox enabled. They cannot be regenerated later.
Searching and Filtering Orders
Use the search bar to find specific orders. The search includes:- Order ID: Exact match on order number
- Technician name: Partial match
- Customer name: Partial match
- Equipment brand: Partial match
- Equipment model: Partial match
AI Usage Monitoring
The orders page displays your AI consumption:- AI Status Badge: Shows if AI is enabled for your plan
- Queries Used: Current month usage vs. limit (e.g., “5/100”)
- Tokens Used: Total tokens consumed vs. monthly allowance
Best Practices
Write Detailed Symptoms
Write Detailed Symptoms
Provide specific, descriptive symptoms for better AI analysis:
- Include observable behaviors
- Mention sounds, temperatures, or error codes
- Note when the problem occurs
- Describe any recent changes or repairs
Update Status Regularly
Update Status Regularly
Keep order status current to:
- Provide accurate tracking for customers
- Enable proper integration with billing
- Maintain clear workflow for team members
Use AI Strategically
Use AI Strategically
AI queries are limited by your plan:
- Use AI for complex or unfamiliar issues
- Skip AI for routine repairs you already understand
- Monitor your monthly usage to avoid running out
Review AI Recommendations
Review AI Recommendations
AI suggestions are helpful but not infallible:
- Verify recommendations against actual equipment condition
- Use as a starting point for diagnosis
- Apply your professional expertise to final decisions
Troubleshooting
Cannot Request AI Diagnosis
Possible causes:- Your subscription plan is Starter or Pro (AI requires Enterprise or Developer Test)
- Monthly AI query limit exceeded
- Monthly token limit exceeded
- Symptoms field has fewer than 5 characters
Equipment Not Appearing in Dropdown
Cause: Equipment must belong to the selected customer. Solution:- Verify you selected the correct customer
- Check that the equipment exists and is assigned to this customer
- Create the equipment record if it doesn’t exist
Cannot Modify Order from Another Company
Cause: Orders are company-scoped for data isolation. Solution: You can only view and edit orders belonging to your company. Contact support if you need to transfer an order.Technical Reference
Controller Actions
- Index:
GET /worker/orders- List all orders with search and pagination - Store:
POST /worker/orders- Create new order with optional AI diagnosis - Update Status:
PATCH /worker/orders/{order}/status- Change order status
Data Stored in Order Record
Pagination
Orders are paginated at 18 per page, sorted by newest first (created_at DESC).
Related Features
- Managing Customers - Create customer records before orders
- Managing Equipment - Register equipment for customers
- Billing & Invoices - Generate invoices from completed orders