{% extends "base.html" %} {% block content %}
Manage base rate plans/modifiers and deterministic pricing rules (snapshots stored on reservations). Rule changes affect future pricing resolution/quotes, not historical snapshots.
| ID | Name | Modifier | Usage | Actions |
|---|---|---|---|---|
| {{ 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. | ||||
Rules are evaluated deterministically by priority (ascending) when active and matching conditions. Snapshots are stored on create/modify.
| ID | Name | Scope | Dates/Nights | Adjustment | Pri | Active | Edit |
|---|---|---|---|---|---|---|---|
| {{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. | |||||||