Busflow Docs

Internal documentation portal

Skip to content

Pricing Screen (Preisgestaltung) โ€‹

Context: Extracted from costing-pricing-separation ADR ยง4 โ€” UI/UX safeguards. App: Workspace (Dispatcher/Planner) Entity: PriceMatrix (Backoffice) โ†’ TourOfferingPrice (Commerce read-model)


Design Principle โ€‹

Opinionated defaults with progressive disclosure. The interface prevents cognitive overload by hiding complexity until the operator needs it.


Screen Layout โ€‹

Read-Only Base View โ€‹

The default view displays a single, read-only grid showing the Base Price Calculation (Level 1) for each variant combination (room type ร— age bracket).

  • Prices derive from the linked CostingSheet + margin_config
  • The grid is read-only by default โ€” the operator sees what the engine calculated
  • The system hides complex channel and algorithmic rules behind toggles

Manual Override Mode โ€‹

Toggled explicitly. Allows the operator to override individual cells (Level 4: "Dispatcher's Veto").

  • Overridden cells are visually highlighted (e.g., colored border, icon badge)
  • Each overridden cell shows a "Revert to calculated" action
  • Manual overrides halt automated yield adjustments for that specific cell [planned โ€” Phase 2]

Micro-Views & Widgets โ€‹

Margin Inspector (Popover) โ€‹

A popover on individual grid cells showing the full derivation stack:

LayerValueSource
Base cost (from CostingSheet)โ‚ฌ85.00CostingSheet.total_net_cost รท pax
+ Margin (18% hotel)โ‚ฌ15.30PriceMatrix.margin_config
= Net selling priceโ‚ฌ100.30
+ Tax (19% standard / margin scheme)โ‚ฌ19.06CostingSheet.tax_strategy
= Gross selling priceโ‚ฌ119.36PriceMatrix.target_gross_price
Manual overrideโ‚ฌ109.00 โš ๏ธDispatcher
Resulting margin-โ‚ฌ10.36 below targetโš ๏ธ Warning

Blended Tour Summary (Persistent Widget) โ€‹

A macro-view widget visible at all times on the pricing screen:

  • Total projected revenue based on the currently active PriceMatrix ร— expected pax
  • Dynamic break-even PAX gauge โ€” visual indicator of how many passengers are needed at current prices
  • Margin health indicator โ€” overall margin percentage vs. planned target
  • Updates live as the operator changes prices

Alerts & Safeguards โ€‹

Stale Override Alerts โ€‹

When the system recalculates a CostingSheet (e.g., fuel spikes):

  1. System scans all linked PriceMatrix entries for active manual overrides
  2. If a cost increase drops the override's margin below the configured threshold โ†’ flag the cell
  3. Dispatcher receives an alert for mandatory review
  4. Alert persists until the dispatcher either updates the price or explicitly confirms the override

Publish Guards โ€‹

Before a PriceMatrix transitions DRAFT โ†’ PUBLISHED:

  • All variants must have valid gross prices (no zero/negative)
  • Break-even PAX must be achievable at the configured capacity
  • The user must resolve any stale-override alerts

Internal documentation โ€” Busflow