Overview
Business configuration allows restaurant owners to customize operational rules that govern reservations, including business hours, cancellation policies, and table timing.Business Entity Structure
TheNegocio (Business) entity stores all configuration:
source/lib/dominio/entidades/negocio.dart
Default Configuration
Every new business starts with sensible defaults:source/lib/dominio/entidades/negocio.dart:21-36
Reservation Duration Settings
Control how long tables are reserved for each booking.Configuring Default Duration
source/lib/presentacion/pantalla_dueno/pantalla_dueno_cubit.dart:229-255
Duration Recommendations
- Quick Service
- Standard Dining
- Fine Dining
45-60 minutesSuitable for:
- Casual dining
- Lunch service
- Fast-casual restaurants
- Cafés
Reservation duration affects table turnover and availability. Longer durations mean fewer reservations per table per day.
Cancellation Policy
Set minimum notice required for cancellations.Minimum Cancellation Hours
Common Policies
| Notice Period | Use Case | Description |
|---|---|---|
| 2 hours | Lenient | Allows last-minute cancellations |
| 24 hours | Standard (default) | Industry standard policy |
| 48 hours | Strict | For high-demand restaurants |
| 72 hours | Very strict | For special events or tasting menus |
Enforcement
The cancellation policy is enforced in the reservation cancellation flow:Advance Booking Window
Control how far in advance customers can make reservations.Maximum Days Ahead
Booking Window Strategies
7 Days - Short Window
7 Days - Short Window
Best for:
- Restaurants with frequent menu changes
- Small establishments
- Highly variable schedules
- More flexibility in scheduling
- Easier to manage staff schedules
- May lose customers who plan ahead
- Less predictable revenue
14 Days - Standard (Default)
14 Days - Standard (Default)
Best for:
- Most restaurants
- Balanced planning needs
- Standard operations
- Good balance of planning and flexibility
- Industry standard
- May not suit special use cases
30 Days - Extended Window
30 Days - Extended Window
Best for:
- Fine dining establishments
- Special occasion restaurants
- Highly sought-after venues
- Allows customers to plan special events
- Better revenue forecasting
- Higher cancellation risk
- Less flexibility for changes
60-90 Days - Long Window
60-90 Days - Long Window
Best for:
- Event venues
- Michelin-starred restaurants
- Destination restaurants
- Accommodates travel planning
- Premium positioning
- Significant advance commitment
- Staff scheduling complexity
Business Hours Configuration
Define when your restaurant is open for reservations.Hours Structure
Business hours are managed separately through theHorarioApertura entity:
source/lib/dominio/entidades/horario_apertura.dart
Configuring Hours
source/lib/presentacion/pantalla_dueno/pantalla_dueno_cubit.dart:187-204
Multiple Service Periods
Restaurants can define multiple time intervals per day:The system automatically prevents reservations outside configured business hours.
Validation Example
source/lib/dominio/entidades/horario_apertura.dart:79-112
Zone Configuration
Organize tables into zones or sections.Default Zones
Every restaurant starts with two default zones:Adding Custom Zones
source/lib/presentacion/pantalla_dueno/pantalla_dueno_cubit.dart:104-116
Zone Best Practices
Descriptive Names
Use clear, customer-facing names:
- ✅ “Terraza con Vista”
- ✅ “Salón Principal”
- ❌ “Zona A”
- ❌ “Sector 1”
Logical Grouping
Group by customer preference:
- Indoor vs Outdoor
- Quiet vs Lively
- Standard vs VIP
- Smoking vs Non-smoking (if applicable)
Consistent Usage
Apply zones consistently:
- All tables should have a zone
- Zone names should be standardized
- Update when layout changes
Customer Choice
Enable zone preferences:
- Customers can request specific zones
- System filters tables by zone
- Improves customer satisfaction
Restaurant Information
Update basic restaurant details from the admin panel.Editable Fields
All business information can be updated:- Restaurant Name
- Contact Email
- Phone Number
- Address
- Specialty
- Description
- Admin panel header
- Customer-facing reservation confirmations
- Email notifications
Restaurant Story
Create a compelling narrative about your restaurant’s history and philosophy.Story Entity
source/lib/dominio/entidades/historia_restaurante.dart
Managing Story Content
source/lib/presentacion/pantalla_dueno/pantalla_dueno_cubit.dart:207-226
Story Writing Tips
Authentic Voice
Authentic Voice
Write in your restaurant’s authentic voice:
- Share genuine passion for food
- Tell the founding story
- Highlight what makes you unique
Customer Focus
Customer Focus
Focus on customer experience:
- Describe ambiance and atmosphere
- Mention signature dishes
- Explain your culinary philosophy
Visual Support
Visual Support
Include compelling images:
- Restaurant exterior and interior
- Signature dishes
- Chef and team
- Historic photos if applicable
Concise Content
Concise Content
Keep it engaging but concise:
- 200-500 words is ideal
- Use paragraphs for readability
- Highlight key information
Configuration Persistence
All configuration is stored in Firestore:Troubleshooting
Problem: Hours Not Validating
Possible causes:- Invalid time format in hours string
- Hour intervals overlap incorrectly
- End time before start time
HH:MM-HH:MM and ensure logical time ordering
Problem: Reservations Outside Hours
Possible causes:- Business hours not configured
- Customer bypassing validation
- Time zone mismatch
HorarioApertura exists and covers all days
Problem: Zone Changes Not Reflecting
Possible causes:- Tables still assigned to old zone names
- Configuration not saved
Best Practices
Test Configuration
Test changes before implementing:
- Verify hours with sample reservations
- Check cancellation policy with different scenarios
- Ensure zones match physical layout
Communicate Changes
Notify customers of policy changes:
- Update website with new hours
- Announce cancellation policy changes
- Inform regular customers directly
Seasonal Adjustments
Adjust configuration seasonally:
- Extend hours during busy seasons
- Add outdoor zones in summer
- Modify cancellation policy for holidays
Monitor Impact
Track how configuration affects bookings:
- Monitor reservation trends
- Track cancellation rates
- Adjust based on data
Next Steps
Table Management
Configure tables and assign them to zones
Reservation Management
Manage customer bookings with your configured rules