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

Reservation #{{ r['id'] }} — {{ r['guest_name'] }}

Manage this stay: status, folio, payments, POS/activities, invoice, and policy actions. ⓘ

How to use this reservation

Status: {{ r['status'] }}

Room {{ r['room_id'] }} · {{ r['check_in_date'] }} → {{ r['check_out_date'] }} · Rate {{ r['agreed_nightly_rate'] }} · Source {{ r['source'] }}{% if r['source_detail'] %} ({{ r['source_detail'] }}){% endif %}{% if r['market_segment'] %} · Segment {{ r['market_segment'] }}{% endif %}{% if reservation_group %} · Group: {{ reservation_group.name }} ({{ reservation_group.role }}){% endif %}

{% if r['booking_notes'] or r['notes'] %}

Notes: {{ r['booking_notes'] or r['notes'] }}

{% endif %} {% if r['pricing_snapshot_json'] and r['pricing_snapshot_json'] != '{}' %}
Pricing snapshot
{{ r['pricing_snapshot_json'] }}
{% endif %}
Checkout override (password)
Modify {% if modify_quote_error %}
{{ modify_quote_error }}
{% endif %} {% if modify_quote %}

Pricing quote (suggested)

{% set qp = modify_quote.pricing or {} %}{% set qt = modify_quote.totals or {} %}{% set q = modify_quote.quote or {} %}

Suggested nightly: {{ "%.2f"|format(q.suggested_nightly or qp.rule_resolved_nightly or qp.plan_suggested_nightly or 0) }} · Quoted nightly: {{ "%.2f"|format(q.quoted_nightly or 0) }} · Nights: {{ q.nights or (modify_quote.inputs.nights if modify_quote.inputs else 0) }}

Accommodation (quoted): net {{ "%.2f"|format(qt.accommodation_net or 0) }} · gross {{ "%.2f"|format(qt.accommodation_gross or 0) }}

{% if qp.applied_rules %}
Applied pricing rules ({{ qp.applied_rules|length }})
    {% for rr in qp.applied_rules %}
  • #{{ rr.id }} {{ rr.name }} — {{ rr.type }} {{ rr.value }} ({{ "%.2f"|format(rr.before or 0) }} → {{ "%.2f"|format(rr.after or 0) }})
  • {% endfor %}
{% endif %}
{% endif %} {% set mrid = (modify_prefill.room_id if modify_prefill and modify_prefill.room_id else r['room_id']) %} {% set mci = (modify_prefill.check_in if modify_prefill and modify_prefill.check_in else r['check_in_date']) %} {% set mco = (modify_prefill.check_out if modify_prefill and modify_prefill.check_out else r['check_out_date']) %} {% set mrate = (modify_prefill.rate if modify_prefill and modify_prefill.rate else r['agreed_nightly_rate']) %} {% set msrc = (modify_prefill.source if modify_prefill and modify_prefill.source else (r['source'] or 'Direct')) %} {% set msd = (modify_prefill.source_detail if modify_prefill and modify_prefill.source_detail else (r['source_detail'] or '')) %} {% set mseg = (modify_prefill.market_segment if modify_prefill and modify_prefill.market_segment else (r['market_segment'] or '')) %} {% set mnotes = (modify_prefill.booking_notes if modify_prefill and modify_prefill.booking_notes else (r['booking_notes'] or r['notes'] or '')) %}
Cancel / No-show / Delete

Super password is required to cancel or mark no-show for paid/partially paid reservations. Unpaid reservations do not require a password. Delete is unlock-gated and may require service proof depending on policy.

Folio

Accommodation{{ "%.2f"|format(folio.accommodation_gross or 0) }} (net {{ "%.2f"|format(folio.accommodation_net or 0) }}, tax {{ "%.2f"|format(folio.accommodation_tax or 0) }})
POS / Activities{{ "%.2f"|format(folio.pos_gross or 0) }} (net {{ "%.2f"|format(folio.pos_net or 0) }}, tax {{ "%.2f"|format(folio.pos_tax or 0) }})
Extra services{{ "%.2f"|format(folio.services_gross or 0) }} (net {{ "%.2f"|format(folio.services_net or 0) }}, tax {{ "%.2f"|format(folio.services_tax or 0) }})
Discounts{{ "%.2f"|format(folio.discounts_gross or 0) }} (adjustment)
Total charges{{ "%.2f"|format(folio.total_charges or 0) }}
Payments (net){{ "%.2f"|format(folio.total_paid or 0) }}{% if folio.deposits is not none or folio.refunds is not none %} (deposits {{ "%.2f"|format(folio.deposits or 0) }}, refunds {{ "%.2f"|format(folio.refunds or 0) }}){% endif %}
Balance due{{ "%.2f"|format(folio.balance_due or 0) }}
{% if (folio.balance_due or 0)|float > 0 %}

Balance due: {{ "%.2f"|format(folio.balance_due or 0) }}

{% endif %}
Allocation (optional, advanced)

Optional explicit allocation metadata for deposit/partial-payment workflows. Totals must not exceed the payment amount; leave blank for automatic/unallocated handling.

Refund (password)
Allocation (optional, advanced)

Optional explicit allocation metadata for refund workflows. Totals must not exceed the refund amount.

Refunds are audited and limited to paid amounts. Net paid: {{ "%.2f"|format(folio.total_paid or 0) }}.

POS / Charges / Activities

Traceability shown per line when available (lot/batch, received/bought time, expiry). Generated invoices/receipts should reflect these charge details; missing fields are omitted gracefully.

{% for p in pos %}{% if not p['voided_at'] %}{% endif %} {% else %}{% endfor %}
IDDescBatch / Lot traceTypeQtyUnitAction
{{p['id']}}{{p['item_description']}} {{ p.get('lot_code') or p.get('batch_lot_code') or ('#' ~ p.get('batch_id') if p.get('batch_id') else '—') }} {% if p.get('batch_id') %}batch #{{ p.get('batch_id') }}{% endif %} {% if p.get('received_at') or p.get('batch_received_at') %}Received: {{ p.get('received_at') or p.get('batch_received_at') }}{% endif %} {% if p.get('expiry_date') or p.get('batch_expiry_date') %}Expiry: {{ p.get('expiry_date') or p.get('batch_expiry_date') }} {% if (p.get('expiry_state') or p.get('batch_expiry_state')) == 'expired' %}EXPIRED{% elif (p.get('expiry_state') or p.get('batch_expiry_state')) == 'expiring' %}EXPIRING{% endif %} {% endif %} {% if p['activity_id'] %}Activity/Trip{% elif p['inventory_item_id'] %}POS/Inventory{% else %}Charge{% endif %}{{p['quantity']}}{{"%.2f"|format(p['unit_price'] or 0)}}
None
Add POS / inventory charge (to folio, batch-aware)

Traceable charge: select inventory item and optionally a specific batch/lot (shows received/bought time & expiry) or leave on Auto FEFO. For barcode/lot lookup use POS scan.

Select a specific batch to sell that lot (traceability/receipt), or leave empty for automatic FEFO on batch-tracked items. Lot code can also identify a batch if known.

Book activity / trip (registered) — adds to folio & invoice like POS
{% if not activities %}

No active registered activities. Register activities/trips in POS / Inventory.

{% endif %}

Payments

{% for p in pays %} {% else %}{% endfor %}
IDAtTypeAmountMethodReferenceNotesStatusAction
{{p['id']}}{{p['at'] or ''}}{{p['payment_type']}}{{"%.2f"|format(p['amount'] or 0)}}{{p['method']}} {{p['reference'] or ''}} {{p['notes'] or ''}}{% if p['allocation_json'] %}
Allocation
{{p['allocation_json']}}
{% endif %}
{% if p['voided_at'] %}voided{% else %}active{% endif %} {% if not p['voided_at'] %}
{% else %}—{% endif %}
None

Net paid: {{ "%.2f"|format(folio.total_paid or 0) }}{% if folio.deposits is not none or folio.refunds is not none %} (deposits {{ "%.2f"|format(folio.deposits or 0) }}, refunds {{ "%.2f"|format(folio.refunds or 0) }}){% endif %}. Cash payments/refunds may be auto-linked to the open cash shift when applicable.

{% if folio.allocation_summary and folio.allocation_summary.payments_with_allocation %}
Explicit payment allocations ({{folio.allocation_summary.payments_with_allocation}} payment{{'s' if folio.allocation_summary.payments_with_allocation != 1 else ''}})

Allocated {{ "%.2f"|format(folio.allocation_summary.allocated_total or 0) }} · Unallocated {{ "%.2f"|format(folio.allocation_summary.unallocated_total or 0) }}

{% if folio.allocation_summary.by_category %}
    {% for k,v in folio.allocation_summary.by_category.items() %}
  • {{k}}: {{ "%.2f"|format(v or 0) }}
  • {% endfor %}
{% endif %}
{% endif %}

Extra services / add-ons

Stay extras posted to the reservation folio (separate from POS inventory sales and activities). Voiding requires unlock + super password.

{% for s in reservation_services or [] %}{% else %}{% endfor %}
IDDescriptionQtyUnitTaxGrossStatusAction
{{s['id']}}{{s['description']}}{% if s['catalog_category'] %} ({{s['catalog_category']}}){% endif %} {{s['quantity']}}{{"%.2f"|format(s['unit_price'] or 0)}}{{"%.2f"|format(s['tax_amount'] or 0)}}{{"%.2f"|format(s['gross_amount'] or 0)}} {{s['status']}} {% if s['status']=='posted' and not s['voided_at'] %}
{% else %}—{% endif %}
No extra services
Add extra service
{% if not service_catalog %}

No active service catalog items. Manage them in Settings → Service Catalog.

{% endif %}

Discounts / vouchers

Discount adjustments reduce the folio balance (posted as ledger adjustments). Voiding requires unlock + super password.

{% for d in reservation_discounts or [] %}{% else %}{% endfor %}
IDDescriptionTypeValueAmountStatusAction
{{d['id']}}{{d['description']}}{% if d['voucher_code'] %} ({{d['voucher_code']}}){% endif %} {{d['discount_type']}}{{d['value']}}{{"%.2f"|format(d['amount'] or 0)}}{{d['status']}} {% if d['status']=='applied' and not d['voided_at'] %}
{% else %}—{% endif %}
No discounts applied
Apply discount / voucher

Packages / bundles

Apply predefined packages to post bundled service/folio lines with allocation snapshots. Voiding an applied package reverses its posted service lines (requires unlock + super password).

{% for rp in reservation_packages or [] %}{% else %}{% endfor %}
IDPackageGross (net/tax)StatusAppliedAction
{{rp['id']}} {{rp['package_name'] or ('#' ~ rp['package_id'])}}{% if rp['notes'] %}
{{rp['notes']}}
{% endif %} {% if rp.get('lines') %}
Posted lines ({{rp['lines']|length}}) {% for ln in rp['lines'] %} {% endfor %}
Svc#DescriptionQtyUnitTaxGrossStatus
{{ln.reservation_service_id or ''}} {{ln.description or ''}} {{ln.quantity or ''}} {{"%.2f"|format(ln.unit_price or 0)}} {{"%.2f"|format(ln.tax_amount or 0)}} {{"%.2f"|format(ln.gross_amount or 0)}} {% if ln.service_voided_at %}voided{% else %}{{ln.service_status or ''}}{% endif %}
{% endif %} {% if rp['snapshot_json'] %}
Snapshot (raw)
{{rp['snapshot_json']}}
{% endif %}
{{"%.2f"|format(rp['total_gross'] or 0)}} (net {{"%.2f"|format(rp['total_net'] or 0)}}, tax {{"%.2f"|format(rp['total_tax'] or 0)}}) {{rp['status']}}{% if rp['voided_at'] %}
voided {{rp['voided_at']}}
{% endif %}
{{rp['applied_at']}} {% if rp['status']=='applied' and not rp['voided_at'] %}
{% else %}—{% endif %}
No packages applied
Apply package
{% if not packages %}

No active packages. Manage packages in Settings → Packages & Bundles.

{% endif %}
{% endblock %}