=== TEG-BANDB — Bed & Breakfast bookings and channels ===
Contributors: theeldestgeek
Tags: bed and breakfast, guest house, bookings, ical, airbnb
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.19.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The back office for a small guest house: a room-night inventory that makes a double booking impossible rather than unlikely, two-way calendar sync with Airbnb, Vrbo and Booking.com with the polling lag measured and stated, a gap report that finds the orphan nights no channel can display, and a breakfast sheet that keeps allergies apart from preferences.

== Description ==

A room-night is the inventory, not a booking. There is one row per room per night with a unique key on the pair, so selling a night is an insert and a second attempt to sell the same night fails at the database, every time. Because the inventory is a night, the holes between bookings become findable too.

* **Room-night inventory** - a stay is held all or nothing: every night is secured before the booking is written, and a refused stay leaves nothing half-held. Holds on inquiries expire and the release is logged.
* **Gap report** - finds the single free nights that a minimum stay makes unbookable on every channel, prices them, and offers to drop the minimum for those nights.
* **Calendar sync with Airbnb, Vrbo and Booking.com** - two-way iCal: the house imports each channel's calendar and publishes one they import. It is polled, not pushed, and the plugin says so: the lag is measured per channel, in minutes, from real history; bookings taken inside that window are marked; and an imported booking that clashes with a night already sold is not applied but recorded as a conflict for a person to resolve, with an alert sent immediately.
* **Rates** - a rate plan per room with nightly overrides only where a night differs, minimum stays, and base and maximum occupancy with an extra-person rate above the base.
* **Rooms** - including how many flights of stairs, occupancy, and cleaning minutes per room.
* **Breakfast sheet** - allergies printed apart from preferences, in capitals; sittings rather than one window.
* **Housekeeping** - changeovers ordered by who is arriving today, longest job first, and whether the morning fits between checkout and the first arrival.
* **TEG Rover: room jobs on the team's phones** - the site side is included, switched OFF until the house turns on "Rover (drivers / field staff)" under Phones. "Send this day's list to the phones" on the Housekeeping screen makes one job per room still to do: to whoever is already on it, otherwise on the open board for the team to take. A team member pairs their phone under Rover phones (QR code, one revocable key per phone, no passwords) and sees the ROOM and the TASK - the room, its floor and stairs, the beds, the kind of turnover, how long it takes and when somebody is due in - ticks a checklist and finishes it: the room is marked done on the housekeeping list, and a room marked done at the desk closes its phone job. Maintenance jobs (a repair in a room, with a photo of the finished work) too. The phone never shows a guest's name, contact details, requests, notes or anything about money. The live map and the job records are for whoever runs the house. The TEG Rover app (0.2.2 or later) is distributed separately; the site side costs nothing per person.
* **Guests, not bookings** - dietary needs live on the guest, so a returning guest is never asked again.
* **Visitor page** - `[teg-bandb]`: search, prices and a short booking form for direct bookings. When nothing is free it says why (a minimum stay, or taken) rather than showing a blank.
* **Guest page** - `[teg-bandb-account]` by link, no login: the guest gives breakfast time, dietary needs and arrival time before the day.
* **Notifications** - the message before arrival, and everything sent is logged.
* **Reports** - RevPAR rather than occupancy alone, and what each channel brought in and took in commission.
* **Backup and restore** - under Settings > Backup, in a protected folder on your own server, by hand or every night at a time you pick, with a copy sent off the site if you choose (SFTP, FTP / FTPS, Amazon S3, Wasabi or Dropbox). It keeps the last 14 plus one a week for 8 weeks, never removes a backup you took by hand, and warns administrators when a nightly backup fails.
* **Gift coupons** - Sales & money > Gift Coupons: money off or a percentage off a booking, or off one room or extra, with minimum spend, dates, use limits, batches for a campaign, a printable coupon and a campaign report. Taken off before tax; the guest sees the discount on their own page. Never e-mailed unless you click to send one.
* **Pay by Zelle and incoming payments** - while a booking owes money, your Zelle address and the booking reference show on the booking, the guest's page, the confirmation and the receipt. Zelle payments read from your bank's alert e-mails are put on the booking by themselves when they match for certain; the rest wait under Sales & money > Incoming payments.
* **One-click setup** - on first activation a short setup page saves the house's details, makes the booking page and the guest page with a menu, adds the Owner, Reception, Kitchen and Housekeeping roles, and can load sample data that Finish removes again. Run it again from Settings > Backup.
* **Help in the menu** - a step-by-step manual and a searchable list of questions inside WordPress, and a round ? on every screen that opens the manual at that screen. After an update, administrators see what changed since the version they last looked at.
* **Takes payments** - guests pay the deposit and the balance online by card through your own Square, Stripe or PayPal account, from the link in the booking confirmation e-mail or their own guest page; Square Terminal at the desk; cash, check, Zelle and the rest written down by hand. Refunds, signed webhooks, a payments CSV.
* **Language: English, Español and more** - Settings > Language. Pick the house language for every guest message and page (confirmations, receipts, the guest's own page, the booking page); each staff member can pick their own for their screens. Language packs (Spanish first) download by themselves, with no plugin update, and need the Pro edition; your own translation file always wins.
* **Region: United States, United Kingdom or European Union** - Settings > Region. One tick switches the currency, the number and date formats, the tax (US lodging tax added on top; UK and EU VAT included in the price, the EU at the country's accommodation rate), the address wording (ZIP code / Postcode / Postal code), the spelling and the ways guests can pay. A booking already taken never changes.

What it is not: it is not a real-time channel manager. A house that needs real-time distribution needs a channel manager with API contracts.

Data lives in the site's own tables, not in posts.

= License =

TEG-BANDB is licensed like The Eldest Geek's Doctor tools. A 30-day Pro trial is baked in and starts the first time the plugin runs on the site; there is nothing to sign up for. A purchased code from theeldestgeek.com (annual or lifetime, single site or an agency pack) is entered under Settings > License. It is bound to the name and e-mail on the order and verified offline against a public key; a paid code is re-checked with the license server once a day and keeps working when the server cannot be reached.

Without a valid license - once the trial has ended, or if a license has been revoked - adding and changing records pauses. Nothing is lost: everything already recorded stays readable and can be exported, customers can still book and use their portal, and entering a license carries on exactly where you left off. The license also decides which updates can be installed. A lifetime license installs any version. A current license installs any version. An expired one keeps installing every version released before it expired, forever, and nothing released after.

== Installation ==

1. Plugins > Add New > Upload Plugin, choose the zip, and activate. The tables are created and the trial is already running.
2. B and B > Settings: the house, the diary, money, breakfast and housekeeping, and channels.
3. B and B > Rooms and Rates: add the rooms and their rate plans.
4. B and B > Channels: paste each channel's calendar address, and give each channel the calendar address this plugin publishes.
5. Put `[teg-bandb]` on a page for the visitor page, and `[teg-bandb-account]` on another for the guest's page (full list: Help Center > Shortcodes).

Later versions arrive through Dashboard > Updates. The download is checked against its published SHA-256 before it is installed, and an update replaces the files in place without touching your data.

= Region =

Settings > Region: where the house trades - the United States (the default), the United Kingdom or the European Union (pick the country). Ticking another region moves every money setting you have not changed yourself to that region's: the currency, the date and time formats, the tax label and rate, whether prices include the tax, and the payment methods guests can be offered. A value you typed stays; "Apply the region's defaults" is the one button that overwrites them, and it asks first. The tab also lists what the region asks of a house: US state and local lodging tax and the local B&B permit; UK VAT on accommodation, the fire risk assessment and short-term let registration; EU accommodation VAT, the city tourist tax and the short-term rental registration number.

Every booking is stamped with its region when it is taken. Its guest page, confirmation and receipts keep the currency, dates, tax and wording it was taken with, and its total is never restated in a later tax rate. Bookings taken before 1.13.0 keep printing as they did. An updating house becomes US / USD; one that had typed £ or € becomes UK or EU, keeping its tax label and rate.

= Payment methods =

Settings > Money > "Payment methods you accept": check what the house takes - in the US Zelle, PayPal, Venmo, credit card, check, cash, ACH and Cash App / Apple Pay / Google Pay; in the UK card, cash, bank transfer, cheque and PayPal; in the EU card, cash, SEPA transfer and PayPal - and type one line of details for each (the Zelle address, "Checks payable to ..."). Card, check and cash are ticked to start with, so nothing changes for guests until you opt in to more, and the list can never be saved empty.

Each booking has a "Ways to pay" tick list, all accepted methods ticked for a new booking; untick what one guest should not use. While something is owed, the guest's own page and the booking confirmation list those ways to pay with your details. Bookings sold by an online travel agent or an agent never show it - that guest pays the channel. A method you stop accepting disappears from new bookings but stays on the ones already made.

Recording a payment lists the accepted methods first, then the house's own - "collected by the channel" and Other - which are never offered to a guest (since 1.14.0 a US bank transfer is recorded as ACH; payments recorded earlier as a bank transfer keep their name). Every payment keeps who recorded it and when, and a note for the house that the guest never sees. Tick "E-mail the guest a receipt" to send one; it is off unless you tick it. The guest's page lists "Payments received": date, method and amount.

= Taking payments online =

Settings > Money > "Taking payments online": switch on Square, PayPal or Stripe with the keys of your own account (they are kept in these settings only - nothing goes in wp-config.php - a saved secret is never shown again and never goes into a backup). The help under the fields says where to find each key and which webhook to add; the Test buttons check them.

With a gateway on, a booking that still owes money shows the guest "Pay the deposit online" while the deposit (Settings > Money > Deposit, percent) has not come in, and "Pay online" for whatever the stay still owes after that - extras added to the stay included. Both links are in the booking confirmation e-mail and on the guest's own page, and on the booking screen to copy. The pay page asks exactly what is owed in the booking's own currency; a card number never reaches your server. A payment that arrives is written on the booking by itself (the gateway's signed webhook, once, however often it is sent), and a receipt goes to the guest if you tick "E-mail a receipt". A stay sold by an online travel agent is never offered online - that guest pays the channel.

Refunds: each payment on the booking screen has a Refund form - a card payment goes back through its own gateway, a hand payment is written back under its own method - never more than is left of it. Money a gateway takes for a booking that no longer owes it (paid at the desk meanwhile, or cancelled) is kept on no booking with an alert for the office, never added to the stay. "Payments CSV (this month)" on the booking screen exports every payment and refund.

Square Terminal: pair the desk's Terminal under Settings > Money and a booking that owes money gets "Send to Square Terminal". TEG Companion takes a payment on the phone the same way (a Square payment link, the Terminal, or the Square app); Zelle, Venmo and PayPal taken on a phone wait for a manager to confirm them.

Taking payments online is part of every licence (Standard and Pro) and the trial; while the licence is paused, new charges, recorded payments and refunds pause too, but money already on its way (a webhook) is still written down and the payments CSV always exports. Payments recorded before 1.14.0 stay exactly where they were, read as they are.

== Frequently Asked Questions ==

= Does the plugin take card payments? =

Yes, since 1.14.0: it takes card payments online through your own Square, Stripe or PayPal account, and Square Terminal at the desk. The money goes straight to your account; the plugin never sees a card number. Cash, checks, Zelle and the rest are still written down by hand.

= Can a guest pay only the deposit? =

Yes. While the deposit has not come in the confirmation e-mail and the guest's page say "Pay the deposit online" (and offer the whole stay as well); after it, "Pay online" for the balance.

= What happens to payments I recorded before 1.14.0? =

Nothing: they stay in the same table, with the same amounts, methods and references, and every booking's paid and balance read the same. They can be refunded from the booking screen like any other.

== Changelog ==

= 1.19.3 =
* The guest page shortcode is now `[teg-bandb-account]` (it was `[teg-bandb-portal]`); put the new name on the guest page. The old name no longer works.

= 1.19.2 =
* Changed: a coupon that would take off more than a booking still owes (after a part payment, say) is now refused, and the message says how much is still owed. Before, it was applied.
* A coupon can no longer be used twice when two people apply it at the same moment; the second one is asked to try again.
* Payments from the phone app that you confirm (Zelle, Venmo, PayPal) no longer get stuck if the confirm is interrupted. The house works out whether the payment was recorded, and if it cannot tell, it shows two "I checked" buttons on the booking so you decide. A confirmed payment's note now starts with [TEG Companion #number].
* A customer import that stopped half-way no longer blocks Undo for ever, and two Undo clicks at once can no longer clash.

= 1.19.1 =
* "What's new" no longer opens by itself after an update. The dashboard has a button "What's new in 1.19.1"; press it to read the notes.

= 1.19.0 =
* The TEG Companion and TEG Rover phone apps can show their screens in another language when your shop has the Pro edition and a language pack. This needs the next update of the apps; until then nothing changes.
* A booking opened on the phone always shows exactly what your guest gets, in the shop language.
* Help Center and menu refresh.

= 1.18.0 =
* New: a Language screen in Settings. Pick the language for the house; each staff member can also choose their own language for the screens they use (Users > Profile).
* Your guests' confirmations, receipts, reminder e-mails, thank-you messages, the guest's own page and the booking page now use the house's own language, so what a guest gets no longer depends on who clicked the button.
* Language packs (Spanish first) arrive later and need the Pro edition. Until a pack is installed, everything stays in English exactly as before. Your own translation file always wins.
* Fixed: the word for Tax set by default could get stuck in a staff member's language after they saved any Settings tab; it now stays as you set it.
* Help: a Language section in the manual and in the FAQ.

= 1.17.3 =
* TEG Companion reports can show older months too (this month, last month and up to 10 more; set how many in Companion).

= 1.17.2 =
* New: Compliance (TEG-BANDB > Setup > Licenses & equipment) - a register of the licenses and permits the inn holds: lodging / business license, health department permit, fire inspection, transient occupancy tax and sales tax registration, liability insurance, or anything else, with the number, who issued it, the dates and the scanned certificate. Renewing keeps the old one as history; each shows Current, Expiring (60 days), Expired or Missing.
* Safety checks: each fire extinguisher and smoke / CO detector with its inspections and certificates; a failed check flags it.
* Reminder e-mails 60, 30 and 7 days before anything expires or falls due and when overdue; a dashboard box and a warning while anything required is missing or expired; a one-click inspection binder (print, PDF or a ZIP of the scans) and a 7-day link for an inspector.
* Scans are kept in a private folder (never the media library) with their hidden metadata removed, every view is logged, and the register and its scans are in every backup. Deleting the plugin keeps the register unless you choose otherwise. The presets are examples (Virginia first), not legal advice.
* Help: a Compliance section in the manual and two new questions in the FAQ.

= 1.17.1 =
* Payments: the currency symbol always matches the currency (a US shop never shows £).
* The app payments list shows the date your region's way.

= 1.17.0 =
* Dates now follow your region: 05/03/2026 in the US, 03/05/2026 in the UK, the country's own way in the EU - on every screen, the guest's own page, e-mails and receipts. Stay dates read "May 3 - 7, 2026" in the US and "3 - 7 May 2026" in the UK. Leave Date format and Time format blank (Settings > Money) to use your region's, or type your own. WordPress's own date setting no longer changes them.
* TEG Companion: the app now writes dates the way your region does.
* The nightly backup's last and next run, coupons and Zelle payments, and TEG Rover show dates your region's way too. Links in Help to a single question now jump straight to it.
* Every booking, guest, payment and setting stays exactly as it was; a booking already taken keeps the date format it was taken with.

= 1.16.0 =
* New: Help in the menu. A step-by-step manual for every screen and setting, a list of common questions you can search as you type, and a round ? at the top of each screen that opens the manual at that screen.
* New: one-click setup. The first time you switch the plugin on, a short setup page saves your house's name, e-mail and phone, makes the booking page and your guests' own page with a menu, adds the Owner, Reception, Kitchen and Housekeeping roles, and can load sample rooms and bookings to try things out (Finish takes them away again unless you keep them). Run it again any time from Settings > Backup.
* New: nightly backups (Settings > Backup). A backup every night at the time you pick (02:30 to start with), kept with your other backups and restored the same way, and copied off the site too if you want - SFTP, FTP / FTPS, Amazon S3, Wasabi or Dropbox. It keeps the last 14 plus one a week for 8 weeks; backups you take by hand are never removed. Passwords and keys are stored locked and never shown again. Administrators get a notice if a nightly backup fails or the last good one is more than two days old.
* New: gift coupons (Sales & money). Make codes for money off or a percentage off a booking, or off one room or extra, with a minimum spend, dates and use limits; print them, send them by e-mail when you choose, and see what each campaign brought in. Apply one from the booking screen; the guest sees it as a discount on their own page.
* New: pay by Zelle. While a booking still owes money, your Zelle address and the booking reference show on the booking screen, on the guest's own page, and in the booking confirmation and payment receipt you already send - no extra e-mails.
* New: incoming payments (Sales & money). Zelle payments read from your bank's alert e-mails are put on the right booking by themselves when the amount and the booking reference or guest's name match for certain; anything unsure waits on the Incoming payments screen for you to apply or ignore.
* New: after an update, administrators see a short list of everything that changed after the version they last looked at, with "Don't show again until the next update".
* Every booking, guest, payment and setting stays exactly as it was.

= 1.15.4 =
* Square Terminal: a payment cancelled from TEG Companion is only shown as cancelled once Square confirms it; unconfirmed cancels are retried automatically and a forgotten checkout is cancelled after 15 minutes.

= 1.15.3 =
* Fixed: proper singular and plural for unsellable nights - "1 night in one gap" on the Today card, "across 1 gap" on the gap report, "1 night in gaps" in Reports (it said "1 nights across 1 gaps").
* TEG Companion: a booking's Total and Paid show once, in the money section under the lines (they were listed twice, the second time in lower case).

= 1.15.2 =
* Fixed: the house owner stays off TEG Back Office payroll, as in 1.15.0 - someone whose only role here is Owner is not on the staff list (an owner is paid from the profit). An owner who also has a Reception, Kitchen or Housekeeping role is listed, and administrators and everyone else who can open the back office still are.

= 1.15.1 =
* Fixed: TEG Back Office's staff list now also offers everyone else who can open the back office and every administrator, as well as your Reception, Kitchen and Housekeeping staff - the same rule as every TEG shop. Each person is listed once, your house staff first. Hours are still typed on the payroll run.

= 1.15.0 =
* New: TEG Back Office reads your staff for payroll: the people with the Reception, Kitchen or Housekeeping role and anyone who has done a housekeeping job in the last year, instead of everyone who can open the back office. Hours are still typed on the payroll run (the house keeps no time clock).
* New: a bank transfer (a wire or ACH sent to your bank) can be recorded by hand again, under Other on the record form. It is never offered to a guest or paid online.
* Payments, TEG Companion and TEG Rover brought up to date: Report cards dates follow your date format, and the Device pairing page masks the addresses it shows.
* Every booking, guest, payment and setting stays exactly as it was.

= 1.14.0 =
* Takes payments: guests pay the deposit and the balance online by card through your own Square, Stripe or PayPal account, from the booking confirmation e-mail and their own page (the shared TEG payments module). Square Terminal at the desk.
* Refunds from the booking screen, never more than was paid; signed, once-only webhooks; money for a booking that no longer owes it is kept aside with an alert, never added to the stay.
* TEG Companion: take a payment on the phone by Square (payment link, Terminal or the Square app); Zelle, Venmo and PayPal taken on a phone wait for a manager to confirm them.
* Payments CSV; pay-by-QR codes (Zelle, Venmo, Cash App) under Ways to pay when you switch them on; card terminals (Clover, Elavon) to record a card taken on your own machine.
* Every payment recorded before stays exactly as it was. Gateway keys are never put in a backup.


= 1.13.12 =
* Licence check knows the new TEG Total Auction Management (TAM) product.

= 1.13.11 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.
* TEG Companion: the home screen no longer offers a "New customer" button the app could not show.

= 1.13.10 =
* The admin menu is grouped the same way as the other TEG shops: the phone pairing page is "Device pairing" and now comes before Import from CSV in Setup.

= 1.13.9 =
* The Companion bookings list now shows the arrival date once instead of twice.
* A guest's "Last here" no longer shows a stay that has not happened yet.
* When any booking carries an orange "!", the bookings list now explains it in plain words and points to Channels.
* The sample bookings are no longer all flagged "!": the added sample's channels start with a recent calendar read, and the main sample keeps just one flagged booking.

= 1.13.8 =
* The licence check and the updater now share one tested core: a slow licence server can no longer slow the shop down.

= 1.13.7 =
* The sample customer is now James Rockford.
* The licence check remembers a recent good answer, so a slow licence server no longer holds the shop up.

= 1.13.6 =
* Money in another currency is always written with its own symbol.
* Product names in the licence screen use the new spelling (TEG-DELI, TEG-FOODTRUCK, TEG-BUTCHER, TEG-BAKERY).

= 1.13.5 =
* No more 'translation loaded too early' notice in the debug log after an update.

= 1.13.4 =
* Money in another currency is written with its own symbol on the TEG Rover cards.

= 1.13.3 =
* A booking keeps the channel commission it was made at; changing a channel's commission only applies to new bookings.

= 1.13.2 =
* Customer links (invoices, quotes, bookings and the like) only open with their exact key; a link with a blank or altered key opens nothing.
* The channel calendar (iCal) export link only opens with its exact key too.

= 1.13.1 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.

= 1.13.0 =
* New: Region setting: one tick switches the shop between the United States, the United Kingdom and the European Union - currency, dates, tax, address wording, spelling and the ways customers can pay. Invoices already issued never change. The sample data now reads as a US business.
* New: a booking keeps the money it was taken in. Its guest page, confirmation e-mail and receipts show the currency, dates and tax it was booked with, and recording a payment never recalculates it in today's tax rate.
* New: Settings > Money: "Prices include the tax" (the UK and the EU), and date and time formats (blank keeps WordPress's).
* New: ways to pay for the region: ACH and Cash App / Apple Pay / Google Pay in the US, bank transfer in the UK, SEPA in the EU. Zelle and Venmo stay US-only; a method accepted in another region is kept, hidden, for a switch back, and a payment already recorded always shows its method.
* Changed: US wording throughout (call us, phone, private bathroom, turnover); dates on the guest's page read the American way in the US (May 3 - 7, 2026).
* Changed: the guest form now has the address fields (address, city, state, ZIP code, country) - before, saving a guest blanked an address that came in from an import.
* Changed: the report CSVs are guarded against spreadsheet formulas in a room or channel name.
* Changed: Totals and reports now count one currency at a time: after a region switch, money in the old currency is listed apart instead of being added in. The TEG Companion app shows every invoice in the currency it was issued in.

= 1.12.0 =
* New: every guest now has one Guest notes box, on the desktop and in the Companion app: the general notes first, then the notes from their bookings, with who wrote each one and which came from Staff. The general notes are the guest's allergies (in red), a block on the guest with the reason (in red), dietary needs, preferences and notes, then the notes written on the guest. A note from a booking says which booking it came from and links to it.
* New: the notes the house writes on a booking (from the Companion app) now show on the desktop too, in the guest's Guest notes. Before, they could only be read on the phone. The booking's requests ("Anything to note") are there as well.
* New: each guest has their own screen. Click a name on the Guests list (or in "Regulars who are about due") to see their details, their bookings and their Guest notes, with the edit form below. A booking's screen links to its guest.
* Changed: a note written on a guest in the Companion app is now kept in their Guest notes. Before, the app refused it. The guest's own Notes field is never changed by the app's notes. Every note stays for the house only: a guest never sees one.

= 1.11.2 =
* Improved: the report cards now use a guest house's words in the small print too. Counts under the money figures say bookings instead of sales ("Average booking"), Returning guests counts guests instead of customers, Booked ahead counts room nights instead of slots, No-shows and cancellations talks about stays instead of appointments, Rebooking reads "guests who booked their next stay" instead of clients and visits, and Occupancy no longer mentions halls.
* Improved: rows that do not apply to a guest house are left out. Owed to guests no longer shows a Gift cards line of 0 (it would appear only if a gift card ever held money), and Cash flow no longer shows Payment plans, or Deposits due while there are none. The numbers themselves are unchanged.

= 1.11.1 =
* Improved: report cards on the phone now open the matching screen on the desktop. Occupancy, Returning guests and Where new guests come from open Reports; Nights booked ahead opens the Calendar; Today so far opens Today; Regulars to call opens Guests. The other cards still open the Reports cards page.
* Improved: the cards use a guest house's words. "Customers" are now guests (Returning guests, Where new guests come from), unpaid invoices are now guests who left owing and guest balances falling due, quotes are now inquiries waiting over 7 days, and the money held is called Owed to guests (deposits paid on stays not yet begun).
* Improved: clearer dates on the cards, for example "October 1" instead of "October 1-1", and "Jan 5-10, 2031" instead of "Jan 5, 2031 to Jan 10, 2031".

= 1.11.0 =
* New: report cards on the phone. In the TEG Companion app's Reports tab each person picks the cards they want to see, arranged in sections (money, bookings, guests and more): this month against last month, average stay value, tax collected, busiest booking times, returning guests, deposits held, guests who left owing, takings by payment method, today's arrivals, money still to come in, nights booked ahead, no-shows and cancellations, guests who booked again before leaving, where new guests came from, and occupancy.
* New: cards made for a B&B. RevPAR (room revenue per available room, with your average nightly rate and occupancy, against the last period), What the channels cost (commission per booking site), Nights nobody can book (short gaps between stays and what they are worth, linked to the Calendar's gaps view) and Nights from returning guests.
* New: a Reports cards page on the desktop, beside Reports. It shows the same cards, lets you compare with the last period, the same time last year or dates you choose, set goals, and download any card as a spreadsheet (CSV) or print it.
* New: "Lost customers after N days" (Settings > Money). Regular guests who have not been back for that many days show on the "Regulars to call" card, best guests first. 90 days unless you change it.
* New: an optional monthly summary e-mail of your cards. It stays off until you switch it on and save it on the Reports cards page.
* Improved: turning the plugin off now also stops its scheduled e-mails, including the monthly summary.
* Fixed: deleting the plugin with "remove all data" ticked now also removes its record of past database updates, which was left behind before.

= 1.10.0 =
* New: TEG Rover is now included, for whoever cleans and turns the rooms. It is switched off until you turn it on (Setup > Phones, "Rover (drivers / field staff)"). Once on, "Send this day's list to the phones" gives each room still to do to the housekeeping phones (room and task only, never a guest's details), and finishing it on the phone marks the room done. The TEG Companion app pairs on the same Phones page; phones you paired before keep working without pairing again.
* New: errands (with Rover switched on). Send someone out for the linen run, breakfast or cleaning supplies, the bank or the post office, using ready-made lists. They tick off each item on the phone, and what they spent comes back with a photo of the receipt for you to confirm.
* New: Import from CSV (Setup > Import from CSV). Bring your existing guests and rooms in from a spreadsheet. Match your columns to ours, do a test run first to see exactly what would happen without saving anything, then import. Every import can be undone in one click.
* Improved: sample data. On a fresh site you can load a believable year-round house (rooms, guests and stays) to try everything out, and remove exactly that sample again with one click before you go live (Settings > Sample data).
* Improved: while the plugin is paused (no valid licence), importing from CSV pauses too; getting your data out still works.
* The database updates itself automatically when you install this version.

= 1.9.0 =
* New: E-mail test mode (Settings > E-mail test mode). Turn it on before going live and every e-mail the site sends - invoices, receipts, reminders, status notes, staff alerts - goes to one address you choose and to nobody else. The subject starts with [TEST to ...] so you can see who it was meant for; the message is exactly what the customer would get. Administrators can switch it from the TEG Companion app too (Settings > E-mail test mode), and a red notice shows on every admin page while it is on. Text messages are not e-mail and still go out.
* TEG Companion: shared Companion core 2.4.0.

= 1.8.0 =
* Booking references are locked unique (checked on activation and every upgrade; repeats are listed for the administrator).
* Settings > Diary: Longest stay taken online, in nights (default 30).
* Channel clashes are e-mailed once, then at most once a day while still in the feed.
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed. DB 1.3.2.

= 1.7.0 =
* TEG Companion: the store chooses what the phone's home screen shows (owner 2026-10-28: too cluttered). Phones (TEG Companion) has a new section, **Companion home screen defaults**: one checkbox per button, card, list and bottom-bar tab the app's home has at this shop (Buttons / Cards / Lists / Bottom bar) and "Reset to starter set". Ticked = shown by default; each person can still change it on their own phone. app/hello's module rows carry `home` {v: 1, items: [{id, label, group, on}]} - only what that person can see. Never saved = the starter set: every button the app has here on (four or fewer: New <job>, New <customer> and the shop's own extras), every list and tab on. Shared Companion core 2.1.0 (generated; tools/test-companion-home.php).

= 1.6.3 =
* Licences for the new shops: TEG-EVENTCENTER, TEG-LASTDJ and TEG-FARM are known to the licence code, in lockstep with the rest of the family. A bundle licence that includes them is read correctly and names them on the License screen; nothing else changes.

= 1.6.2 =
* Get my license: Settings > License - enter the order number and e-mail to install your license; Check license; Release this website.

= 1.6.1 =
* Sample house: each of the five rooms now has a photograph (Unsplash, credited in sample-data/photos/SOURCES.md), imported into the media library once and reused on every reload. The public rooms list shows a room's photo when it has one.

= 1.6.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or code) to work bookings and guests (arrivals, departures, date ranges), notes, photos, signatures and payments taken from your phone.

= 1.5.0 =
* Admin menu grouped by job with bold headings (FRONT DESK, HOUSE, SALES & MONEY, SETUP), alphabetical within each group, Today pinned first. The same bold capitals show in the open menu, the hover fly-out, the collapsed menu and on a phone; a heading only shows when you can open something under it. Every page keeps its address.

= 1.4.2 =
* The license server moved to wildwebwizards.com (licenses, trials and site checks now go to https://wildwebwizards.com/cgi-bin/postlicense.py). Nothing changes for your license.

= 1.4.1 =
* The admin menu now reads TEG-BANDB, like the other TEG shops.

= 1.4.0 =
* "What's new" after an update: the first time you open the shop after an update, a card shows what changed - once. After that a small "What's new" button on the dashboard opens the same notes again, any time.

= 1.3.2 =
* License checking: when the license server cannot be reached, the license panel now shows the real reason (a timeout, a certificate problem, or a proxy error page) instead of a generic message, and re-checks at most every 10 minutes instead of on every admin page. A license that is still waiting for its first check-in is now labeled "AWAITING VALIDATION" rather than "REVOKED". Entering a paid code checks it in with the license server right away and says how that went.

= 1.3.1 =
* American English throughout: every screen, e-mail, printout and help text now uses American spelling (labor, color, license, canceled, catalog, authorize and the rest). Nothing you have saved changes - settings, records and translations carry over as they are.

= 1.3.0 =
* Licenses are now tied to your site. When you enter a paid code it checks in with the license server once and binds to this site's address; after that it keeps working normally even if the server is unreachable. Your data is never locked away - everything stays readable at all times.
* A brand-new install (or a copy placed on a different web address) that has a paid code but has never checked in stays in read-only mode for the paid features until it can reach the license server once. The License tab says so and "Re-check now" completes it. Sites that were already licensed and running are carried over automatically on update - nothing to do.
* The trial is unchanged: it still works fully offline for 30 days from the first run.
* The value features now pause together when a license is not active: online booking, the business report export, and taking a new backup. Reading, printing (the daily breakfast and arrivals sheets) and downloading your own data (including existing backups) are always allowed, and a guest can still cancel or amend an existing booking.
* The License tab shows this site's bound address and whether it is validated, and warns when a code is in use on more sites than it was sold for.

= 1.2.0 =
* Payment methods you accept: Settings > Money now lists Zelle, PayPal, Venmo, credit card, check and cash, each with a line of details for the guest. Card, check and cash are ticked to begin with, so nothing changes for guests until you choose more.
* Ways to pay: each booking offers the accepted methods (untick any for one guest), and the guest's own page and the confirmation e-mail show them with your details while something is owed. Bookings sold through an online travel agent do not show them.
* The guest's own page now lists the payments received - date, method and amount.
* Recording a payment: accepted methods first, then bank transfer and "collected by the channel"; a note for the house only; who recorded it and when; and an optional e-mailed receipt with the amount, method, date, booking reference and what is left to pay.
* Restoring a backup works again. Every backup's header was misread (the settings saved inside it confused the reader), so every restore was refused as "never finished"; the backups themselves were complete and restore normally now.

= 1.1.0 =
* The license now counts: once the 30-day trial has ended without a license, or if a license is revoked, adding and changing records pauses. Everything already recorded stays readable and can be exported, customers can still book and use their portal, and entering a license carries on where you left off. A banner on every screen says so before anybody fills in a form.
* The 30-day trial now ships inside the plugin, so it starts the first time the plugin runs with nothing to sign up for.

= 1.0.2 =
* A license that has been revoked (after a refund, for example) no longer receives updates, lifetime licenses included. If the license server cannot be reached, updates carry on as before.
* CSV imports and exports no longer write a deprecation warning to the debug log on PHP 8.4.

= 1.0.1 =
* Translations now load at the point WordPress 6.7 expects, which removes the "translation loading was triggered too early" notice that filled the debug log on every request.
* Updates now follow the license: a license buys every version published while it was valid. Lifetime installs anything, a current license installs anything, and an expired one keeps every version released before its expiry date. The plugin keeps working either way.

= 1.0.0 =
* First release: the room-night inventory, the gap report, two-way iCal sync with measured lag and conflict handling, rates and minimum stays, the breakfast sheet, housekeeping, guests, the visitor and guest pages, and reports.
* Self-hosted updates through Dashboard > Updates with checksum verification, and backup and restore under Settings > Backup.
