# CLOUDYTE OPERA-CORE PACK: GROUPS, RATE CODES, COMPLAINTS
Comes after Tier 1, in this order:
1 Guest360 G1-G3 (spec: ~/specs/guest360.txt)
2 OC1 Group and block bookings (below)
3 OC2 Rate codes and packages (below)
4 OC3 Complaints (below)
5 Lock K0-K2 (spec: ~/specs/lock_integration.txt)
6 Debit notes and bad-debt provision (owner decisions already in HANDOVER)

RULES FOR EVERY PART
- Gap check first: what exists (mass check-in, reservations, room types, rates, discounts, city ledger, Guest360). Reuse; no duplicates.
- Each part its own small run, OFF by default, guarded install, full gate ALL PASS, money checksum f944cdcdf472 unchanged unless I approve, own commit, HANDOVER.
- STOP and ask before anything that changes how room prices, tax, service charge or posting are calculated. Build it switched off and mark WAITING FOR OWNER if a condition can't hold.
- Never delete bookings or money records: cancel/void with a reason (5-255), audited.
- Nobody approves their own transaction. Auditors read-only. One heavy job at a time.

OC1 - GROUP AND BLOCK BOOKINGS (OPERA: Groups / Blocks)
- A group (block): name, company or organiser (link to city ledger account / Guest360), contact, arrival and departure dates, rooms per night by room type, agreed rate, cut-off date, billing rule (group pays all / guests pay all / group pays room only, guests pay extras), deposit.
- Rooms held in the block are not sold to others until the cut-off date; after cut-off, unused rooms go back to general sale automatically (audited).
- Rooming list: add guests to the block (type or upload Excel/CSV); each becomes a normal reservation linked to the group.
- Group check-in and check-out using the existing mass check-in / mass check-out.
- Master bill for the group (charges routed by the billing rule); individual bills for extras.
- Group report: pickup (rooms held vs used), revenue, balance.
- Changing a group's agreed rate after booking needs the GM, with reason.

OC2 - RATE CODES AND PACKAGES (OPERA: Rate codes / Packages)
- Rate codes set by the GM: code, name (e.g. RACK, BB = bed and breakfast, CORP = corporate, WKND = weekend, GOV, LONGSTAY), price per room type, valid dates, days of week, minimum nights, who may use it (all / company only / GM approval).
- Packages: extras included in a rate (breakfast for N persons, airport pickup, dinner). The included part is shown on the bill as a separate line; F&B redeems it (e.g. breakfast voucher) without charging again.
- Company rates: a company account can have its own rate codes.
- The receptionist picks a rate code; she cannot type a price. Overriding a rate needs a supervisor with reason.
- Reports: room nights and revenue by rate code; package items used vs sold.
- Tax and service charge on packages: STOP and show me the plan before building (how the package price is split between room and F&B revenue).

OC3 - COMPLAINTS (OPERA: Guest complaints / requests)
- Log a complaint or request: guest/room, department, category (room, noise, food, staff, billing, maintenance, other), priority, description, who logged it, time.
- Assign to a department or person; status: open, in progress, resolved, closed; due time by priority.
- Resolution note; any compensation (discount, comp, free item) goes through the existing approval and reason rules (no new money path).
- Guest360: complaints show on the guest's profile.
- Reports: open complaints by department and age; repeat complaints; average time to resolve. Shown on the GM's morning report.

ORDER: Guest360 G1-G3 -> OC1 -> OC2 (stop for my OK on package tax/revenue split) -> OC3 -> Lock K0-K2 -> debit notes and bad-debt provision.
