{% extends "base.html" %} {% block content %}
Manage this stay: status, folio, payments, POS/activities, invoice, and policy actions. ⓘ
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'] != '{}' %}{{ r['pricing_snapshot_json'] }}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 %}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.
| 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) }} |
Refunds are audited and limited to paid amounts. Net paid: {{ "%.2f"|format(folio.total_paid or 0) }}.
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.
| ID | Desc | Batch / Lot trace | Type | Qty | Unit | Action |
|---|---|---|---|---|---|---|
| {{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') %}{% endif %}
{% if p.get('expiry_date') or p.get('batch_expiry_date') %}{% 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 | ||||||
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.
No active registered activities. Register activities/trips in POS / Inventory.
{% endif %}| ID | At | Type | Amount | Method | Reference | Notes | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{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']}} |
{% 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 %}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 %}Stay extras posted to the reservation folio (separate from POS inventory sales and activities). Voiding requires unlock + super password.
| ID | Description | Qty | Unit | Tax | Gross | Status | Action |
|---|---|---|---|---|---|---|---|
| {{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 | |||||||
No active service catalog items. Manage them in Settings → Service Catalog.
{% endif %}Discount adjustments reduce the folio balance (posted as ledger adjustments). Voiding requires unlock + super password.
| ID | Description | Type | Value | Amount | Status | Action |
|---|---|---|---|---|---|---|
| {{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 predefined packages to post bundled service/folio lines with allocation snapshots. Voiding an applied package reverses its posted service lines (requires unlock + super password).
| ID | Package | Gross (net/tax) | Status | Applied | Action | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{rp['id']}} |
{{rp['package_name'] or ('#' ~ rp['package_id'])}}{% if rp['notes'] %} {{rp['notes']}} {% endif %}
{% if rp.get('lines') %}
Posted lines ({{rp['lines']|length}})
Snapshot (raw){{rp['snapshot_json']}} |
{{"%.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 | |||||||||||||||||||
No active packages. Manage packages in Settings → Packages & Bundles.
{% endif %}