{% extends "base.html" %} {% from "partials/ui.html" import page_header, subtabs, subtab_help %} {% block content %} {{ page_header('Settings / Branding', 'Configure property, branding, master data, maintenance, and updates. Protected actions require unlock/super password.') }} {{ subtabs([ {'key':'general','href':'/settings?tab=general','label':'General'}, {'key':'data','href':'/settings?tab=data','label':'Seed & Data'}, {'key':'rooms','href':'/settings?tab=rooms','label':'Rooms & Plans'}, {'key':'updates','href':'/settings?tab=updates','label':'Updates & Health'} ], active_tab, 'Settings sections') }} {% if active_tab == 'updates' %}
Manage Rate Plans & Pricing Rules · Service Catalog · Discount Vouchers · Packages & Bundles · Users & Roles (RBAC groundwork) · Approvals (workflow foundation) · Ledger/Data Health Check (read-only, unlock required)
Checks GitHub for newer versions and can fast-forward update installed source code. Runtime data is preserved (database, exports, invoices, configured data directory).
| App version | {{ (update_local.app_version or '—') }} |
|---|---|
| Installed commit | {{ (update_local.commit_short or '—') }} {% if update_local.commit_subject %}— {{ update_local.commit_subject }}{% endif %} {% if update_local.commit_date %}({{ update_local.commit_date }}){% endif %} |
| Branch | {{ update_local.branch or '—' }} {% if update_local.dirty %}(local changes present){% endif %} |
| Install | {{ update_local.project_root or '' }} |
| Data (preserved) | {{ update_local.data_dir or '' }} |
{{ (update_check.latest.commit_short if update_check.latest else '—') }} {{ (update_check.latest.subject if update_check.latest else '') }}{{ (update_check.latest.commit_short if update_check.latest else (update_local.commit_short or '—')) }} {{ (update_check.latest.subject if update_check.latest else '') }}{{ c.commit_short }} {{ c.subject }} {% if c.author %}— {{ c.author }}{% endif %}{% if c.date %} ({{ c.date }}){% endif %}
{% if c.details %}Runs a safe git pull --ff-only (requires unlock). Restart the app after updating. If local source changes exist, stash/commit/discard them first.
{{ update_apply.local_after.commit_short }} {{ update_apply.local_after.commit_subject or '' }}Open latest release/download page
{% endif %} {% else %}{% for s in update_apply.steps %}{{ s.step }} (rc={{ s.rc }})
{{ s.stdout }}
{{ s.stderr }}
{% endfor %}APPLY SEED CONFIG and only works before operational data exists (pre-operational DB).APPLY DEMO DATA).RESET DEFAULTS, preserves schema/language).Seed all inventory easily with barcodes and full item data. Use CSV for bulk spreadsheet/barcode workflows, or JSON for full master-data control. Apply is allowed only before operational data exists and requires unlock + super password + APPLY SEED CONFIG.
CSV columns: item_name, category, stock_qty, unit, unit_cost, selling_price, low_stock_threshold, overstock_threshold, active, sku, barcode, barcode_type, track_batches, shelf_life_days, default_supplier.
Loads synthetic but realistic operational data to explore workflows/reports quickly. Refused when operational data already exists.
Requires unlock + super password + confirmation RESET DEFAULTS. Preserves schema/language.
Manage Rate Plans (add/edit/delete) · Ledger/Data Health Check
Add rooms anytime. Deleting a room is blocked if referenced by reservations.
| ID | Number | Type | Base price | HK | Action |
|---|---|---|---|---|---|
| {{r.id}} | {{r.room_number}} | {{r.room_type}} | {{"%.2f"|format(r.base_price or 0)}} | {{r.housekeeping_status}} | |
| No rooms. | |||||
0.0.0.0 on a fixed port and use a stable LAN IP so installed PWAs can reconnect to the same URL.Gift: {{ brand.gift }}
Create backups and test label printing (configured label/default printer or saved export).
Barcode/label device settings (barcode_*, label_printer, label_format, expiry policy) are in the catalog below.
To access SPMS from phones/tablets/other PCs on the same network, run the server on host 0.0.0.0 (launcher menu: LAN mode or --host 0.0.0.0) with a fixed port and SQLite-safe --workers 1.
http://<LAN-IP>:<port> on each device and use “Add to Home Screen / Install app”. Keep the same IP+port when starting the server.PM_WEB_SECRET_KEY for shared/LAN access, allow the port in firewall for trusted networks only, and prefer HTTPS reverse proxy/VPN outside trusted LAN. Some browsers limit full PWA install/offline features on non-localhost HTTP origins.Current access host: {{ current_access_host }}{% if is_local_access %} (local access){% endif %}
Detected LAN URL candidates (this server port):
{{ u }}If the server is running on 0.0.0.0, open one of these URLs from another device on the same network. If multiple interfaces are shown, use the one reachable on your Wi-Fi/LAN.
No LAN IPv4 address auto-detected. Check your network adapter settings and use your machine’s LAN IP, e.g. http://<this-machine-LAN-IP>:<port>.
Edit values supported by services.save_settings. Sensitive save requires super password.