{% extends "base.html" %} {% block content %}

Rate Plans & Pricing Rules

Manage base rate plans/modifiers and deterministic pricing rules (snapshots stored on reservations). Rule changes affect future pricing resolution/quotes, not historical snapshots.

Add rate plan

Existing plans

{% for p in plans %} {% else %}{% endfor %}
IDNameModifierUsageActions
{{ p.id }}{{ p.name }}{{ "%+.2f"|format(p.price_modifier) }} EGP {% if p.usage_count is none %}?{% elif p.usage_count > 0 %}{{ p.usage_count }} reservation(s){% else %}0{% endif %}
Edit / Delete
No rate plans.

Pricing rules

Rules are evaluated deterministically by priority (ascending) when active and matching conditions. Snapshots are stored on create/modify.

Add pricing rule (requires unlock + super password)
{% for r in rules %}{% else %}{% endfor %}
IDNameScopeDates/NightsAdjustmentPriActiveEdit
{{r.id}}{{r.name}}
Plan: {{r.rate_plan_name or 'Any'}}
Room: {{r.room_type or 'Any'}}
Source: {{r.source or 'Any'}}
Segment: {{r.market_segment or 'Any'}}
{{r.start_date or '—'}} → {{r.end_date or '—'}}
Nights: {{r.min_nights if r.min_nights is not none else '—'}}–{{r.max_nights if r.max_nights is not none else '—'}}
{{r.adjustment_type}} {{r.adjustment_value}}{{r.priority}}{{'yes' if r.active else 'no'}}
Edit
No pricing rules.

← Back to Settings

{% endblock %}