=== TEG-RESTAURANT — Bar, Kitchen & Front of House ===
Contributors: theeldestgeek
Tags: restaurant, reservations, menu, bar, online ordering, delivery, pickup, taproom, events
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.22.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The back office for a bar and restaurant: the menu, the taps, the tables, the diary and online orders for pickup or delivery — on the site you already have.

== Description ==

TEG-RESTAURANT runs the parts of a small bar and kitchen that usually live in
three notebooks and somebody's head.

**The menu** — sections and dishes, with the fourteen named allergens declared
on each one and a plate cost built from the ingredients, so the margin on every
dish is visible before anybody argues about the price. A dish that runs out is
marked off *until the end of tonight* and comes back by itself in the morning;
nobody has to remember to switch it on again.

**The bar** — what you sell, what is in the cellar and what is pouring right
now, kept as three separate things because they have three different
lifetimes. Levels are in milliliters, so a keg that is nearly gone says so on
the tap board and on the website.

**The floor** — rooms, tables and services. A service is one named sitting on
one day of the week, with its own hours, its own last-booking time and its own
cap on covers.

**Reservations** — availability that understands a table is held for a *turn*,
not a moment, so 7:00 and 8:00 are correctly the same table for the same hour.
A party is never given a table too big for it. Full times are shown grayed
rather than hidden, because "eight is gone but seven-thirty is there" is a
better answer than a short list.

**Pickup or delivery** — the visitor builds an order from the dishes that
travel, chooses Pickup or Delivery, picks a time the kitchen will actually
accept, and gets a reference short enough to read out over a noisy bar. Every
line records the name and the price *as charged*, so next week's price change
cannot rewrite last week's receipt.

Delivery goes where you say: a list of ZIP codes (226* covers a range), and
optional zones with their own fee, minimum and free-delivery amount. No map
account or geocoding service is needed. You set the delivery fee, the smallest
order you will deliver, a free-delivery threshold, delivery hours and their own
notice time, an optional driver tip at checkout, and whether customers pay
online or cash/card at the door. The kitchen board shows Pickup or Delivery on
every order, with the address, soonest promised time first.

Deliver with your **own drivers** — give a staff member the Delivery driver
role and they see their deliveries (address, map link, gate code, the cash to
collect) and mark them Out for delivery, Delivered or Could not deliver; they
can also claim an unassigned one — or **manually / through a courier** you
phone yourself. The customer's order page shows where the order is, including
"Out for delivery". Reports and the order CSV split pickup and delivery and
show delivery fees and tips.

**TEG Rover driver app** for restaurants with their own drivers (Deliveries >
TEG Rover driver app; off until switched on): the open board of deliveries on
the driver's phone, directions, a checklist at the door, the cash to collect
and the closest driver suggested for each order. A delivery order gets its
call when the kitchen accepts it; the driver claims it, taps On my way,
Arrived and Delivered (or Could not deliver with a reason), and the order moves
through its usual statuses beside the web Deliveries screen. What the driver
takes at the door waits for the office to confirm it before it is a payment.

**TEG-DELI** — the Deli & Counter edition, sold as its own product and
switched on by a TEG-DELI license (one plugin, no add-on): items sold by the
pound, quarter pound, ounce or kilogram with a container tare and the scale's
division; catering and party trays ordered ahead with a deposit, the prep list
for each day and a calendar; call-ahead pickup with a short number per day, a
"ready" notice and a pickup screen for a TV over the counter; grab-and-go
package labels (net weight, price, price per lb, packed and use-by dates,
ingredients, allergens) and kitchen prep labels (prepped by, discard date) on
a Dymo, Leitz or Brother label printer or as a PDF; shelf stock with SKU,
barcode, reorder point and a low-stock list; ingredients beside the
allergens on the menu. With it on, tables and bookings are hidden; without
it nothing changes.

**TEG-FOODTRUCK** — the Food Truck & Cart edition, sold as its own product
and switched on by a TEG-FOODTRUCK license (one plugin, no add-on; a deli
with a truck can have both editions): where the truck is today and the next
stops - one-off and weekly, with the place, times, address and map link, a
"We're open now" badge on your site and the [teg-restaurant-truck] shortcode, cancel or
move a stop with the reason; followers told by e-mail (and text) when the
truck is out; festival, event and private catering bookings - quote (flat,
per head or a minimum guarantee), deposit on the pay page, confirmed and on
the same calendar, the organizer's fee and commission and what each event
made; permits per city, county and state with renewal reminders, the health
inspection and commissary logs, propane and fire-suppression checks; sold
out with one tap, the par and prep list per stop, sales per stop (which spots
pay); a TEG Companion till that keeps selling cash with no signal and sends
each sale once when it is back (a card needs signal); and a vendor profile a
market or an event center can list the truck from. With it on, tables and
bookings are hidden; without it nothing changes.

**Events** — quiz nights, live music, beer dinners. Untick "tickets" for a
listing; tick it and seats are counted and sold, with the last seat closing
the event by itself.

**Specials** — offers written as rules, not typed over the menu. "Half price
openers, four until six, Tuesday to Friday" is true every week without anybody
editing anything, and stops being true on its end date without anybody
remembering.

**A visitor page** — one shortcode, `[teg-restaurant]`, carrying the menu, the
taps, the diary, the booking form and the pickup-or-delivery basket. Four more shortcodes go on other pages: `[teg-restaurant-sales]` (current sales), `[teg-restaurant-truck]` (Food Truck edition), `[teg-restaurant-cake-order]` and `[teg-restaurant-bread-club]` (Bakery edition); full list: help/manual.md, Shortcodes.

= Licensing =

The same license as the rest of The Eldest Geek family: a 30-day Pro trial is
built in and starts the first time the plugin runs on your site, not on the day
the code was built. Enter a code under Restaurant → Settings → License.

== Companion app ==

TEG Companion runs the orders from a phone. Under Restaurant → Setup → Phones (TEG Rover and TEG Companion share this list) choose a person and the kind of phone and press Create key: a QR code appears ONCE. In the app choose Pair with a shop and scan the QR (or paste the code).

A phone can do exactly what its person can do on the website, nothing more. Floor staff (serve) take and place orders, set any status and take payment; the kitchen marks orders accepted or ready; a driver sees only deliveries and moves their own along (out, delivered, failed with a reason); Guests need the booking permission; the day's takings need Reports. Every change goes through the same rules as the order screen. Nothing is ever e-mailed or texted to a guest from the phone, and taking a payment sends no receipt. An order's allergies are always shown on the phone and cannot be switched off. Photos and signatures are kept in a private folder, never in the media library. Revoke a key the moment a phone is lost. Table reservations are not on the phone yet.

An administrator's phone also has a Reports tab: the sales this month against last month (the same figures as Reports > What sells: orders before tax, without delivery fees and driver tips), and report cards to pick from - covers by service with the average table check, food cost, today so far, busiest times, best times by item, sales tax, takings by method, discounts, refunds and canceled orders, money still owed on orders, cash flow, gift cards and deposits owed to guests, club memberships, booked ahead, covers against the caps, no-shows, guests who rebook, where new guests come from, repeat guests and regulars who have stopped coming (after 90 days by default; change it under Settings > Tables & bookings). The same cards are on the desktop under Restaurant > Reports cards, with a CSV per card, Print / PDF, goals and a monthly summary e-mail.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the zip
   through Plugins → Add New → Upload.
2. Activate it. The tables are created on activation.
3. Go to Restaurant → Settings and fill in the house: name, address,
   telephone, tax.
4. Set up the floor (Restaurant → The floor): rooms, tables, then a service
   for each sitting on each day you open. **Nothing can be booked until at
   least one service exists.**
5. Put `[teg-restaurant]` on a page, and name that page under Settings →
   Visitor page so links in confirmation e-mails point at it.

To see the screens with something on them first, turn on Settings → Data and
updates → Load the sample house: an invented brewpub in an old cinema, with ten
lines pouring, a menu, two weeks of bookings and five events.

== Frequently Asked Questions ==

= Why will nothing book? =

There is no service covering that day and time. A service is one sitting on one
weekday; until you have added them, the plugin correctly believes you are shut.

= A table shows as taken when it looks free =

A booking holds its table for the whole turn, not just its start time. With a
ninety-minute turn, a table booked at seven is not free at eight.

= Can I let guests change their booking online? =

They can cancel from the link in their confirmation, which frees the table for
somebody else, and (once you turn it on) move it to another date, time or
party size when a table is free then. The booking keeps its reference and is
never lost when nothing fits.

= Does it take payment? =

Payments are recorded against an order. Pickup orders default to paying at
the counter, which is what most kitchens want; deliveries default to cash or
card at the door, and the driver's screen shows the amount to collect.

Settings > Payments > "Payment methods you accept" lists Zelle, PayPal, Venmo,
credit card, check and cash, each with a one-line detail (your Zelle phone,
your PayPal.me link, who checks are payable to). Card, check and cash are
ticked to begin with. Every new order offers what you accept, and the order
screen has a "Ways to pay" tick list to take one away for that customer. The
customer's order page and the order e-mail show those ways to pay with your
details, and a "Payments received" list once money has come in.

"Take payment" records the method, a staff-only note, who recorded it and
when, and can e-mail the customer a receipt (unticked unless you tick it).
Square takes cards online when you switch it on: at checkout for pickup and
delivery orders (off, optional or required) and as deposits or no-show fees
for bookings. Once you tick a gateway under Settings > Payments (with your own
keys; the steps for each gateway are on that screen), every order also has its
own pay page where the guest pays by card or PayPal through Square, PayPal or
Stripe; it is linked from the guest's order page and the order e-mail. All of
this is off until you switch it on, and a demonstration site never takes money. Refunds are made from
the order screen and never go above what was paid.

= How do I start taking deliveries? =

Settings > Delivery: tick "Take delivery orders", list the ZIP codes you
deliver to (or add zones), set the fee and the smallest order, and choose who
delivers. With "Own drivers", give each driver the Delivery driver role under
Users; they get a Deliveries page and nothing else. Every order placed before
1.5.0 is a pickup and stays exactly as it was.

= What happens to my data if I delete the plugin? =

Nothing, by default. Everything is kept unless you deliberately turn off "Keep
the data if the plugin is deleted" first.

== Screenshots ==

1. Today — covers booked, orders waiting, kegs nearly gone.
2. The booking day view, with allergies and occasions in front of the floor.
3. The tap board, with keg levels and a one-click keg change.
4. A dish with its costing and its margin.
5. The visitor page: the menu on a telephone.

== Changelog ==

= 1.22.2 =
* Changed: the website shortcodes for the bread club, custom cakes and food truck now have clear names - [teg-restaurant-bread-club], [teg-restaurant-cake-order] and [teg-restaurant-truck].

= 1.22.1 =
* Changed: when the hourly tidy-up finishes a booking that was still seated, the card kept on file for it is now let go (before, it stayed held) and the visit is added to the guest. Once it is let go, no no-show fee can be charged on it.
* Cards still held on bookings that were finished earlier are let go in the background, 25 an hour, and are never charged.
* A card is marked as released only when Square confirms it. If Square cannot be reached, the card stays held with the reason noted on the booking, and it is tried again within the hour.
* Changed: saving a booking in its own form now follows the same rules as the buttons. Seated and Finished record when the guest sat and left; Finished adds the visit and lets the card go.
* Changed: saving an order with the status it already has no longer sends a second e-mail. A note typed with it is kept in the order's history (for a failed delivery it becomes the reason shown).
* An online order whose card payment was refunded in full can no longer be accepted by mistake from the phone app or by a driver when card payment is Required. You can still set any status from the order screen.
* A closed or voided till tab that is set back to an earlier status on the order screen is open on the till again.
* Food truck: a stop that is closed, canceled or moved can no longer be canceled or moved, a canceled or moved stop can no longer be closed, and a booking that is already declined, canceled or completed cannot be changed again.

= 1.22.0 =
* New: Referral offer, under Gift Coupons in the TEG-RESTAURANT menu (it is off until you turn it on). A guest's referral code works like a coupon: a new guest who gives it gets the discount you choose off their first order, and the guest who referred them gets a reward once that order is paid in full. You can also switch on a welcome offer with one code for every new guest.
* Rules that protect you: first order only; one offer per person (the same e-mail or phone counts as the same person); nobody can refer themselves; the reward waits until the order is paid; and each guest can earn at most 12 rewards a year (you can change that limit or remove it).
* The offer line in order and receipt e-mails goes only to guests who agreed to marketing messages.
* A coupon, loyalty reward or referral discount larger than what is still owed on a part-paid order is now refused, so an order can no longer end up overpaid.
* Fixed: a coupon, loyalty reward or club discount put on a till tab with a service charge no longer drops the service charge from the total.
* Fixed (Bakery edition with the two-rate tax on): a discount (coupon, loyalty reward, club) no longer changes the tax to the single shop rate.
* Changed (Bakery edition with the two-rate tax on): a till tab is now always taxed as eaten here - the prepared-food rate plus your meals tax, and the service charge at the prepared-food rate - from the first line, not only after a discount. Till tabs in bakeries without the two-rate tax, and every other order, are unchanged.
* Restoring an old backup made before this version clears the referral records that backup did not contain.
* Before you update: if you run the Bakery edition with the two-rate tax on, close (take payment and close) any open till tabs first. A tab that was already paid but left open would be taxed the new way at its next edit and show a small balance.

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

= 1.21.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.
* An order opened on the phone shows exactly what your guest gets, in the restaurant's language.
* The "the truck is out" and "the stop changed" messages to your truck followers are always written in the restaurant's language, whoever opens or cancels the stop.
* Help Center and menu refresh.

= 1.20.0 =
* New Language screen in Settings. Each staff member can choose their own language for the screens under Users, Profile.
* The restaurant now has a language of its own for everything a guest receives: booking and order e-mails, receipts, text messages, the menu and booking pages, and gift card, deposit and pay pages. 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.
* Bakery labels, deli labels and the bakery invoice follow the restaurant's language; allergen wording is unchanged.
* Saving one Settings tab no longer saves a copy of the standard wording of e-mails and texts you never changed, so those keep following the language.
* Help: a new Language section in the manual and the FAQ.

= 1.19.3 =
* The sample restaurant looks more like a real night: promised times for tonight's pickups and deliveries fall inside service hours, the delivery that is out has a driver, and open tabs show sensible opening times.
* Sample bookings fit their sittings (Sunday lunch, Saturday lunch and dinner), the kegs come in real sizes (half, quarter and sixtel barrels) with their own delivery and tapped dates, and sample orders no longer show a stray half-price badge.
* More order history in the sample (about ten weeks) with payments, so the month-to-month comparison and Takings by method have something to show.
* Reports: a short line explains why Today's booking count can be higher than the report (waiting requests hold a table).
* Settings: the Postcode box is wide enough for a full postcode.
* TEG Companion shows the table name when an order has no customer name.

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

= 1.19.1 =
* Amounts now follow your region everywhere: $1,234.50 in the United States, £1,234.50 in the United Kingdom, 1.234,50 € in Germany. A few places still wrote a dollar sign whatever your region - the cost per piece on recipes, the running total on the order form (which also lost its separators), and the sample "$5 off" sale. Anything already issued keeps the money it was issued in.
* Payments: the currency symbol always matches the currency (a US shop never shows £).
* App payments list shows the date your region's way.

= 1.19.0 =
* Dates now follow your region everywhere: 03/14/2026 and 2:05 pm in the United States, 14/03/2026 and 14:05 in the United Kingdom, the country's own way in the European Union (14.03.2026 in Germany) - on screens, prints, e-mails, TEG Companion and TEG Rover. WordPress's own date setting is no longer used. Anything already issued keeps the date format it was issued with.
* TEG Companion is told your date format, so the phone shows dates the same way.
* TEG Rover: updates from the shared Rover module (the offline queue on the phone, the pairing form with one kind of phone).
* Backups and the help pages: dates the region's way; help links to small headings land on them.
* Counter, coupons, gift cards and clubs: dates the region's way.

= 1.18.1 =
* 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.18.0 =
* New: the till (Restaurant > Till, switch it on under Settings > Online orders). Tabs for tables and the bar that stay open while the party orders; rounds held and fired to the kitchen by course; covers on every tab; comps and voids of fired food approved with a manager PIN and kept in the tab's history; the bill split evenly or check by check; cash, card and the Square Terminal with tips kept apart from sales; a cash drawer with float, expected and counted.
* Payments module brought up to date (card on file is in the module but stays off for the restaurant).

= 1.17.0 =
* TEG Back Office payroll now lists everyone who works here - the back office, the floor and counter, the kitchen and the drivers (Settings > Access & staff) - in every edition (Bakery, Deli and Food Truck too).
* Payments: bank transfer is recorded under one name (wire still works); the incoming-payments notice shows only on the restaurant's own screens; Companion report card dates follow your date format; Rover's Device pairing hides IP addresses; licence check knows TEG-MARKETER and the Back Office bank feed.

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

= 1.16.7 =
* Printed invoices no longer print web addresses: scan the QR code instead. The Zelle note now starts 'To pay by Zelle'.

= 1.16.6 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.
* The help pages and the Deliveries screen now point to Setup > Device pairing.

= 1.16.5 =
* The admin menu is grouped the same way as the other TEG shops: Help is now "Help & Tutorials", the phone pairing page is "Device pairing", and Settings is the last row of Setup.
* Nothing in your database changes with this update.

= 1.16.4 =
* In the Companion app, Zelle, Venmo and PayPal payments wait for the office to confirm them; a manager can apply them at once.
* Invoices can show pay-by-QR codes (Venmo, Cash App, Zelle) under Ways to pay - Settings > Payments.
* Nothing in your database changes with this update.

= 1.16.3 =
* Loading the sample data no longer tries to send e-mails.
* Nothing in your database changes with this update.

= 1.16.2 =
* The sample customer is now James Rockford.
* The shared shop code's integrity check now also covers the product labels.
* Nothing in your database changes with this update.

= 1.16.1 =
* 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).
* Take payment from TEG Companion charges in the invoice's own currency and refuses a card in a different currency before anything is charged.
* Nothing in your database changes with this update.

= 1.16.0 =
* Three editions of TEG-RESTAURANT are in this release: TEG Deli, TEG Food Truck and TEG Bakery. Each one is switched on by its own license; without one, TEG-RESTAURANT works exactly as before.
* TEG Deli (for a deli and counter): selling by weight with the scale's tare and rounding, catering and party trays with a deposit, call-ahead pickup numbers and a pickup screen for a TV, package and prep labels, shelf stock, and the Deli in the TEG Companion app.
* TEG Food Truck (for a truck or a cart): where the truck is today and its next stops, followers told when the truck opens, event and catering bookings with a deposit, permits and inspections, par levels and a prep list per stop, sales per stop, selling with no signal from the TEG Companion app, and a vendor profile for markets and event centers.
* TEG Bakery (for a bakery or bakery-cafe): the daily bake list, recipes with baker's percentages and costing, allergen and ingredient labels, custom-cake orders with a deposit and a design approval, bread clubs and trade standing orders (Pro), two-rate tax with a local meals tax, and the Bakery in the TEG Companion app.
* The editions add up: a license with two editions (for example a bakery with a deli counter, or a bakery with a truck) has both on.
* TEG Bakery defaults, all of them settings you can change: the deposit on a custom cake is 50% of the price (at least 25), a guest can change a cake order until 48 hours before pickup, and the tax rates are your shop's own rate until you type a grocery rate, a prepared-food rate or a meals tax.
* Take payment from TEG Companion: staff take a table's tab, a pickup, a booking deposit or a cake deposit on the phone - the Square app on an Android phone (Tap to Pay or a Square Reader), a Square Terminal, or a Square pay link or QR code the guest pays. A card payment is recorded only after this site has checked it with Square, once. Zelle, Venmo and PayPal recorded on the phone wait for the office to confirm them. Card on the phone is off until you switch it on under Settings > Payments.
* A test of the booking deposits no longer fails in the evening: it now books a valid time slot whatever the time of day.
* Money in another currency is written with its own symbol on the TEG Rover cards and the coupon / promo screens.
* Your data is kept. Updating adds new tables for the editions and for Take payment (they stay empty until you use them) and a few new columns; nothing existing is changed.

= 1.15.3 =
* Customer links (invoices, quotes, bookings and the like) only open with their exact key; a link with a blank or altered key opens nothing.
* Gift card links work the same way: only the exact key shows the card.
* Nothing in your database changes with this update.

= 1.15.2 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* The coupon and sale reports count one currency at a time too: after a region switch, coupons used on orders in the old currency are listed apart instead of being added in.
* The "Not counted above, in another currency" line writes each currency its own way (for example 1.190,00 €).
* Nothing in your database changes with this update.

= 1.15.1 =
* 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.
* Nothing in your database changes with this update.

= 1.15.0 =
* Every guest now has one Guest notes box, on the desktop and in the Companion app: the general notes first (the guest's alert line in red, then their Notes), then the notes from their orders and bookings, with who wrote each one and which came from a member of staff. It sits on the guest's own screen, above their bookings.
* Each note from an order or a booking says which one it came from ("From Order #R-1234", "From Booking Oct 3") and links to it on the desktop.
* You can add a note to a guest from the desktop (Add a note) or from the Companion app. Before, the app refused a note on a guest; now it is kept with the guest's notes, and the guest's own Notes field is never changed by it.
* In the Companion app an order also shows its guest's alert line and notes at the top.
* Nothing in your database changes with this update, apart from one new table for the notes written on a guest.

= 1.14.2 =
* Report cards use restaurant words in the small print too: repeat guests now reads "of 12 guests" instead of "of 12 customers", and tables booked ahead reads "13 of 100 seats" and "Empty seats" instead of slots.
* Report cards leave out lines that do not apply to a restaurant: no "Payment plans" line in cash coming in, no "Money lost" line on the no-shows card while it is 0, and no "Gift cards" or "Deposits held" line at 0 on the money you owe guests when gift cards or booking deposits are switched off.
* The numbers on the cards do not change.
* Nothing in your database changes with this update.

= 1.14.1 =
* Report cards on the phone now open the matching screen on the desktop: sales, sales tax and the average sale open Reports > What sells; covers against the limits open Reports > How busy were we; no-shows open Reports > Who did not turn up; tables booked ahead open Bookings; regulars who have stopped coming open Guests; money still owed opens Orders; gift cards and deposits open Gift cards; club memberships open Clubs.
* The card names fit a restaurant: "guests" instead of "customers" (repeat guests, where new guests come from, owed to guests), "Orders served but not paid" and "Open orders falling due" instead of invoices, and bookings instead of appointments or rooms.
* The money still owed card no longer shows a "Quotes waiting" line - a restaurant has no quotes.
* Clearer dates on the cards: "October 1" instead of "October 1-1", and "Jan 5-10, 2031" instead of "Jan 5, 2031 to Jan 10, 2031".
* A card refund still waiting at Square, PayPal or Stripe is checked again after the plugin is turned off and on.
* Nothing in your database changes with this update.

= 1.14.0 =
* New: report cards on the phone. In TEG Companion an administrator's Reports tab now shows report cards, set out in sections such as money, guests and bookings. Each person picks the cards they want to see and the order they come in.
* New: the restaurant's own cards - covers by service (lunch, dinner and so on) with the average table check for dine-in, and food cost from your plate costs - plus today so far, busiest hours, best times for each dish, sales tax, takings by payment method, discounts, refunds and canceled orders, money still owed on orders, cash coming in, gift cards and deposits you still owe guests, club memberships due, tables booked ahead, covers against each service's limit, no-shows, guests who book again, where new guests come from, repeat guests and regulars who have stopped coming.
* New: Restaurant > Reports cards on the desktop. The same cards on one page. Compare with the last period, the same time last year or dates you choose, set goals and see how close you are, download any card as a CSV file, or print it (or save it as a PDF).
* New: "Lost guests after N days" under Settings > Tables & bookings decides when a regular counts as no longer coming (90 days unless you change it).
* New: an optional monthly summary e-mail of your report cards. Nothing is sent until you turn it on and save it.
* Turning the plugin off now also stops its scheduled e-mails.
* Nothing in your database changes with this update.

= 1.13.1 =
* Fix: Import from CSV now follows the licence like the rest of the shop (it was usable while the plugin was paused).

= 1.13.0 =
* New: Import from CSV (under Setup). Bring in your guest list, menu sections and dishes from a spreadsheet saved as CSV. You match each column to a field (the screen suggests the matches), then do a test run that shows exactly what would be added or changed and what would be refused - nothing is saved by a test run. When it looks right, run the import for real. Every import can be undone in one click from the list of past imports. A new dish stays off the menu unless the file says it is available, so you can check it first, and a dish with an allergen the restaurant does not know is refused rather than guessed.
* New: errands for your drivers in TEG Rover. Send a driver or runner to the restaurant supply store, the produce market, the butcher, the bakery, the bank or the post office with a list to tick off, a spending limit and a photo of the receipt. Ready-made lists fill in the common runs. The office checks and confirms what was spent (Rover > Errand spending). TEG Rover stays off until you switch it on under Setup > Phones.
* Sample data: "Load the sample restaurant" (Settings, with the one-click setup) adds a complete invented restaurant beside your own - a menu with plate costs, a bar list, rooms and tables, guests, three months of bookings and orders with payments, events, specials and delivery zones - so every screen has something on it. It never changes your own settings, menu, guests or orders, and "Remove sample data" takes away exactly what it added and nothing else. It will not load on a restaurant that already has real data.
* TEG Companion (the staff phone app) and TEG Rover are included and updated to the latest shared versions.
* Updating adds new tables only (DB 1.6.6); nothing you have is changed or removed.

= 1.12.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.11.1 =
* Square Terminal: on a bill that still owes money, staff can press "Send to Square Terminal" to take the card on the shop's paired Square Terminal; the payment is recorded once and a tip is noted, never billed. Pair the terminal under Settings > Payments.
* Card payments taken on a Clover or Elavon terminal can be recorded by hand (US shops, off until ticked in Settings > Payments). They count as card in the totals, and a whole card number typed into the note is refused.

= 1.11.0 =
The big features planned for 1.9.0, now on top of 1.10.0. Everything new that takes money, sends texts or prints is OFF until you turn it on, on a new site and on an updated one. A demonstration site (Demonstration mode ticked, or the TEG SHOPS demo plugin present) never takes money: no card is asked for, no gateway is called, and a payment notice from a gateway is refused - even with keys saved.
* Dish options (Menu > Option groups): sizes, sides, "remove" and extras on a dish, each with its own price (and cost). The guest picks them on the website; staff pick them on Orders > Take an order. The order keeps the options at the price charged, so changing the menu later never changes an old order.
* Allergen filter on the menu (Settings > Visitor page, off by default): the guest ticks what they must avoid and those dishes are grayed out or hidden. A dish with no allergens entered says "Allergens not listed - ask staff" and is never shown as safe.
* Order at the table (Settings > Online orders, off by default): a QR code on each table (The floor > QR codes prints them). The guest orders from their phone; the kitchen sees "Table 12". "New QR code" retires the old printed one.
* Card payment at checkout through Square (Settings > Payments, off by default).
* Online payments through Square, PayPal and Stripe: a pay page for an order or a booking deposit, refunds from the order screen (never more than was paid), and a payment for a bill that no longer owes it is kept aside for staff instead of being put on the bill. After this update all three are off until you tick them again: before 1.11.0 those boxes did nothing.
* Booking deposits and no-show fees (Settings > Tables & bookings, off by default): a deposit taken when the guest books and taken off the bill, or a card kept on file for a no-show fee. Each charge or refund is sent once, even on a double click. The deposit is refunded when the guest cancels in time or when the restaurant cancels or declines. A deposit larger than the bill refunds the difference. The guest is told "booked" only once the card went through.
* Guests can move their own booking (off by default, also on an updated site; Settings > Tables & bookings). The form is limited to a few tries per visitor, and a booking inside the refund window cannot be moved online.
* Kitchen tickets on a thermal printer through PrintNode (Settings > Printers, off by default).
* Text messages to guests through Vonage (Settings > Text messages, off by default): booking confirmations, reminders, "order ready", "driver on the way", waitlist offers. Only to guests who ticked "Text me"; STOP works. Phone numbers are masked in the activity log.
* Waitlist for full sittings (Settings > Waitlist, off by default).
* Gift cards and loyalty points (Sales & money, off by default). A canceled order gives back its gift card money and its points.
* TEG Rover driver app for your own delivery drivers, on the shared TEG Rover module (rover-core 1.5.0): off until you tick "Rover (drivers / field staff)" on Setup > Phones. Money a driver collects is checked by the office and recorded only up to what the order owes.
* Setup > Phones is now one list for TEG Companion and TEG Rover phones. Phones already paired for TEG Companion are moved over by the update and keep working; the Companion home screen settings are on the same page.
* Settings > Region: US, UK or an EU country sets the currency, formats and tax label. An updating restaurant with no region saved stays US, unless its saved currency is £ / GBP (it becomes UK) or € / EUR (EU); its tax label and rate stay as they were, and a region already saved is never changed.
* Updating adds new tables and columns only (DB 1.6.5); nothing you have is changed or removed. Deleting the plugin (without "keep my data") removes the new tables too.

= 1.10.0 =
* Order references are locked unique (checked on activation and every upgrade; repeats are listed for the administrator).
* Website orders use real time slots within Orders > How far ahead, days (default 14).
* Events have Most seats in one booking (default 12); a larger party is asked to call.
* Incoming payments accept only the Incoming payments key, never the read-only API key (counter core 1.1.1).
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed. DB 1.5.1.1.

= 1.9.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.8.2 =
* The sample house costs every dish now: each of the eighteen dishes has its ingredients per portion with a cost, so the Menu list shows a plate cost and a believable margin (food cost about 25 to 35 percent) instead of $0.00 and 100% on most of them. Loading the sample again rebuilds only the sample's own ingredient lines; a line you added to a dish yourself, and your own dishes, are left alone.
* A dish with no ingredients yet shows a dash for plate cost and margin ("no costing yet") on the Menu list and the dish screen, instead of $0.00 and a 100% margin.

= 1.8.1 =
* 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.8.0 =
* Faster pages: the license check no longer waits on the license server during a normal page load. A paid license that has checked in once keeps working if the server cannot be reached, its answer is remembered between pages, and a check that does go out gives up after a few seconds instead of holding the page.
* Faster admin screens: looking for plugin updates now happens in the background (WP-Cron), not while a page loads. "Check now" on the License tab still checks right away.
* Deactivating the plugin now also stops its background update check, and deleting it clears the cached update and license-check information. Your license, trial and shop data are never touched by either.
* Compliance (a new page in the menu): a register of the licenses and permits the business and its staff hold - Food establishment permit, Certified food protection manager, ABC license (alcohol), Fire inspection, Business license (BPOL), or anything else - with the number, who issued it, issue and expiry dates, bond and surety where one applies, and the scanned certificate. Renewing keeps the old one as history; each shows Current, Expiring (60 days), Expired or Missing.
* Equipment and calibration: Food thermometer, Hood fire suppression system, Fire extinguisher - with make, model, serial, inspections or calibrations (who, seal, result, next due, certificate) and an optional routine check log; a reading outside its tolerance flags the equipment.
* Reminders by e-mail 60, 30 and 7 days before anything expires or falls due, and when overdue; a dashboard box; a warning on the shop's pages while anything required is missing or expired. One click makes an inspection binder (print or save as PDF, or a ZIP with the certificates).
* Scans are kept in a private folder (never the media library) with their hidden metadata removed, and every view is logged. The register is in the backups. Deleting the plugin keeps the register unless you choose otherwise. The presets are examples (Virginia first), not legal advice.
* Saving always says so: the "saved" notice now travels in the address the save returns to (signed for the logged-in user), so it shows even when another open screen, an auto-refreshing page or a non-persisting object cache would have swallowed the stored copy. It appears as a dismissible notice plus a toast (fades after 6 seconds; errors stay) and leaves the address bar. No database change.
* Scheduled off-site backups (Settings > Backup): a backup every night at the time you set (default 02:30), kept in the private backup folder like any other and restorable the same way, and copied off-site if you choose - SFTP, FTP / FTPS, Amazon S3 / Wasabi / S3-compatible, or Dropbox. Keeps the last 14 plus one a week for 8 weeks, here and off-site; backups taken by hand and the safety copy before a restore are never pruned. Passwords and keys are stored encrypted and never shown again. Test connection, Run backup now, a status table, and a notice to administrators when the last scheduled backup failed or the last good one is more than 48 hours old.
* What's new: after an update the first admin screen an administrator opens lists every release since the one they last saw (administrators only), with "Don't show again until the next update".
* Gift Coupons and Sales (Sales & money): coupon codes that take money off an order before tax - money off, percent off or one item free, on the whole order, dishes or drinks, or one dish - with minimum spend, dates, use limits, campaigns, batches, a printable coupon and a campaign report; and sales that lower the price of dishes or drinks by themselves while they run, with a badge on the line and "You saved" on the order. Pay by Zelle: a line on every order that still owes money with your Zelle address and the order reference for the memo - also in the order confirmation and the payment receipt the house already sends (no new e-mails). Incoming payments (Sales & money): Zelle payments read from the bank's alert e-mails and posted to the shop (POST /wp-json/trs/v1/payments/incoming with the X-TRS-Key header) are recorded on the order by themselves when the amount and the order reference or the customer's name match for certain, without a receipt; the rest wait on the Incoming payments screen to be applied or ignored. Nothing is e-mailed by itself: a coupon is e-mailed only when staff click to send it.
* One-click setup: on first activation (and from Settings > Data & updates, Run setup again) a setup page saves your business details, makes the public pages with their shortcodes and a menu, makes any missing staff roles, and can load safe sample data that Finish removes again (unless you keep it). Help has a new First-time setup section.
* Help Center: full manual, searchable FAQ, ? on every screen.

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

= 1.7.1 =
* Sample house: forty different invented guests instead of five, a month of bookings (the past fourteen days - finished, a few no-shows and cancellations - and the next fourteen) and a fortnight of settled order history, so the guest, covers and order screens look like a house that has been trading. The sample is deterministic, and reloading it no longer piles up duplicate bookings. Sample e-mails are @example.com and telephones are in the 555-01xx range.

= 1.7.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or 9-digit code) to work orders, guests, notes, photos, signatures, payments taken and the day's takings from your phone. Allergies are always shown; nothing is e-mailed from the phone.
* TEG Companion (phone app): orders, guests, notes, photos, signatures, payments taken and the day's takings from a phone, paired with a QR code or a 9-digit short code under Restaurant → Phones. Allergies are always shown; nothing is e-mailed from the phone.

= 1.6.0 =
* The Restaurant menu is grouped: Today first, then FRONT OF HOUSE (Bookings, Deliveries, Events, Guests, Orders, The floor), MENU & BAR, SALES & MONEY and SETUP, alphabetical within each group. The group headings are bold capitals 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.5.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.5.1 =
* The admin menu now reads TEG-RESTAURANT, like the other TEG shops.

= 1.5.0 =
* Pickup or delivery: customers choose at checkout. Everything the website says to them now says "Pickup" (not "collection"). Every order placed before this version is a pickup and is untouched.
* Delivery area: a list of ZIP codes you deliver to (226* covers a range), plus optional zones with their own fee, minimum and free-delivery amount. No geocoding or map account needed; a radius check can be added later through the trs_delivery_area filter.
* Delivery fee, smallest order to deliver, free delivery over an amount, optional tax on the fee, delivery hours and their own notice time and slot length, an optional driver tip (from your tip suggestions or an amount), and paying online or cash/card on delivery - or letting the customer choose.
* The customer gives the street address, ZIP code, phone and delivery notes (gate code, apartment). The confirmation e-mail shows the fee, tip and total and links to the order page; a new "on its way" e-mail goes when the order leaves.
* Delivery statuses: placed, accepted, ready, out for delivery, delivered - with "delivery failed" (try again or return) and "returned to us". Pickups keep placed, accepted, ready, picked up. Every change is kept on a timeline on the order.
* The kitchen board shows Pickup or Delivery on every order, the address and notes for deliveries, and the driver, soonest promised time first.
* Who delivers: "Own drivers" (a new Delivery driver role with its own permission in Settings > Access & staff; drivers see Restaurant > Deliveries, claim open deliveries, and mark Out for delivery, Delivered with the cash taken, or Could not deliver) or "Manual / third-party" (you phone a courier).
* Totals, the order screen, the customer page, e-mails, reports and the new "every order" CSV include the delivery fee and tip, and reports count pickups and deliveries.
* The sample house delivers to Strasburg with two zones, and has tonight's pickup and delivery orders on it.
* Taking delivery orders is a licensed feature, paused with online ordering when a license is not active. A driver can always finish a delivery already on the road.
* Coming soon: the TEG Rover driver app for restaurants with their own drivers.
* Fixed: the dining-room tables were never saved. The table list could not be created on MySQL or MariaDB because one of its columns ("accessible") is a reserved word; the update creates it. Add your tables under Restaurant > The floor (or reload the sample house).

= 1.4.0 =
* "What's new": after an update, a short card on the TEG-RESTAURANT screens lists what changed - shown once per person, then a "What's new" button on the dashboard reopens the same notes in a pop-up window. In demo mode, where every visitor shares one login, the card is remembered per browser instead, so each visitor sees it once.

= 1.3.2 =
* Licensing: entering a code now checks it with the license server right away and says how it went. A paid code that has not checked in yet is shown as AWAITING VALIDATION (not REVOKED), and when the server cannot be reached the License tab shows the actual connection error. While the server is unreachable the plugin asks it at most once every ten minutes instead of on every page. An offline install can define TRS_NO_LICENSE_NETWORK in wp-config.php.

= 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 panel says so and "Re-check" completes it. Restaurants 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 reservations, online orders and event tickets, business/CSV report exports, and taking a new backup. Reading, viewing and exporting your own data for portability are always allowed.
* The License panel shows when a license is in use on more sites than it was sold for.

= 1.2.0 =
* Payment methods you accept: Settings > Payments now lists Zelle, PayPal, Venmo, credit card, check and cash, each with a details line printed for the customer. Card, check and cash stay ticked on an upgrade, so nothing a customer sees changes until you opt in. Saving with nothing ticked keeps the previous list and says so.
* Ways to pay on every order: a new order offers everything you accept; untick a method on the order screen for that customer. The customer's order page and the order e-mail show the ways to pay with your details. A method you stop accepting stays on orders already placed.
* Take payment records the method in its own column, a staff-only note, who recorded it and when, and shows them on the order screen. The customer sees "Payments received" (date, method, amount) but never the note. "E-mail the customer a receipt" sends a plain receipt only when ticked.
* Payments from before 1.2.0 keep reading correctly: the method is filled in from what was recorded (a Square or Stripe payment reads as Credit card) and the time from when it was created.
* 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.

= 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 =
* Updates now arrive through Dashboard > Updates. WordPress replaces the files in place and never touches your data, and a download is refused unless it matches the published checksum.
* A license buys every version published while it was valid: lifetime and current licenses install any update, and an expired license can still install anything released on or before its expiry date. With no valid license the plugin keeps working; it just is not offered updates.
* Settings > Backup: back up everything the plugin holds to a private folder on this server, and restore it, with a safety backup taken first.
* Changes to the database between versions are applied once, in order, and pick up where they left off if interrupted.
* Translations now load at the point WordPress 6.7 expects, so a site with debugging on no longer logs a 'translation loaded too early' notice on every page.
* The license screen now recognizes every product in the family, so a bundle license names the right shops.

= 1.0.0 =
* First release. Menu with allergens and plate costing; bar with taps, kegs and
  levels; rooms, tables and services; reservations with turn-aware
  availability; orders to collect; events with ticketing; specials as rules; a
  visitor page; a read-only REST API; reports; and a sample house to look at.
