=== TEG-SALON — Hair, Color & Barbering ===
Contributors: theeldestgeek
Tags: salon, hairdresser, barber, booking, appointments
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.20.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The back office for a salon or barbershop, built around the thing every other
diary gets wrong: a color is not one block of time.

== Description ==

Book a root tint in almost any salon software and it takes eighty minutes out
of a stylist's day. It shouldn't. A tint is twenty minutes of application,
thirty-five minutes of processing while the stylist is doing nothing at all,
and twenty-five minutes to rinse and finish. The chair is busy for eighty
minutes. **The stylist is busy for forty-five.**

Those thirty-five minutes are real. They happen for every color, several
times a day, and in a diary that books one solid block they are invisible —
so nobody sells them, and a busy Saturday quietly contains two hours of a
stylist standing about.

TEG-SALON stores three durations per service and asks two separate questions
when anything is booked:

* is the **stylist** free? — only during application and finishing
* is the **chair** free? — for the whole span, processing included

That is the entire trick. It means the diary will offer a client a fringe
trim at the exact moment somebody else's foils are developing, and the
stylist's column has no hole in it.

= Color, done properly =

* **Patch tests that actually refuse the booking.** Color needs an allergy
  alert test at least 48 hours beforehand, and it expires. TEG-SALON knows
  the difference between no test, an expired test, a test done this morning
  (too soon), and a recorded **reaction** — which never expires and always
  refuses. A stylist should not have to remember every client.
* **Formulas exact enough to repeat.** Tubes and weights, developer strength
  and ratio, where on the head, how long it stayed, and what it actually
  looked like afterwards — the field most systems leave out and the only one
  that says whether to do it again.

= Money, for both kinds of staff =

Most salons run employed stylists on commission *and* self-employed people
renting a chair, in the same room, on the same day. They are opposite
arrangements: the salon owes one a percentage, and is owed rent by the other.
TEG-SALON works out both, keeps the lines so a stylist can be shown exactly
how the figure was reached, and never recalculates a closed period — so a
rise next month cannot restate what somebody was already paid.

Tips belong to the person, not the salon, and are kept out of takings.
Service and retail commission are separate rates, and a line knows who sold
it — the colorist did the color, the junior sold the conditioner.

= The numbers a till roll cannot give you =

* **Utilization** — hours sold against hours rostered, with processing time
  correctly *not* counted as worked.
* **Processing time sold** — how much of it was filled, and how much went
  spare. The plugin's own argument, measured.
* **Rebook rate** — the best predictor of next quarter's takings.
* **Retail attach rate** — where the margin actually is.
* **Color margin** — billed against what the tubes cost.

= Everything else =

Clients with alerts that appear on every screen. Per-level pricing, where the
absence of a price means that level doesn't do that service. Chairs as real
resources, by kind — a backwash is not a styling chair. Retail and
professional stock kept apart. Courses of treatments counted down as a
liability, not booked as income. A waiting list. Reminders. A visitor page
with online booking, and a client page reached by a link rather than a
password.

* **TEG Rover (the mobile stylists' phone app).** Salon > Front desk > TEG
  Rover. For weddings, events and appointments in the client's own home. The
  office makes a job from a diary booking (its client, day, time and the booked
  services fill in; the services become the checklist) - type the address of
  the house or the venue, the diary has none - and puts it on the open board or
  gives it to a stylist. The stylist claims it (two can never take the same
  one), gets directions, marks arrival (the booking becomes Arrived), ticks the
  services off and completes it (the booking becomes Finished and the client's
  visit counts, as at the diary). The client's alerts (an allergy, a sensitive
  scalp) and the booking's notes reach the phone only once the job is the
  stylist's own. What is taken at the door waits for the office, which confirms
  it and it becomes a payment on the booking's sale. Booking, formulas and
  patch tests stay here. Location is shared ONLY while on shift; a job
  finished without signal is sent when the signal returns; each phone pairs by
  scanning a QR code under Setup > Phones with its own revocable key, no
  passwords; the data stays on your own site, and there is no monthly fee per
  stylist.

Data lives in your own database, in your own WordPress. The client list is
the business, and it should not live in somebody else's booking platform.

== Installation ==

1. Plugins → Add New → Upload, choose the zip, activate.
2. Salon → Settings: the salon's name, opening hours and money.
3. Salon → Team and rota: add the stylists and their working week.
4. Salon → Chairs: add the chairs, by kind.
5. Salon → Price list: the services — **and put the processing minutes in the
   middle box for anything that develops on the head.** That box is the
   feature.
6. Put `[teg-salon]` on a page for the visitor page, and
   `[teg-salon-account]` on another for the client page. `[teg-salon-sales]`
   shows the current public sales (full list: Help Center > Shortcodes).

A 30-day Pro trial is baked in; no sign-up.

== Companion app ==

TEG Companion is the phone app for running the salon from a stylist's pocket:
the day's appointments (book one, move it through arrived / in the chair /
finished, record a no-show), clients and their alerts, notes, photos and
signatures, taking a payment against a sale, and the day's takings by method.

1. Salon → Setup → Phones (TEG Rover and TEG Companion share this list and one
   key store): choose the person and the kind of phone, give it a name, **Add a
   phone**. A QR code appears ONCE.
2. In the app choose "Add a shop" and scan the QR (or paste the code).
3. The phone can do only what that person can do in the salon: booking needs
   the booking permission, clients the clients permission, sales and payments
   the till, and the day's takings the reports permission.

Nothing is ever e-mailed or texted to a client from the phone, and no receipt is
sent when a payment is taken there. A payment's note is for the salon only: it is
shown to staff who use the till and never to a client. Photos and signatures live
in a private folder, not the media library. Remove a phone on the same Phones
page and it stops working at once.

== Frequently Asked Questions ==

= How do I set up Square, PayPal or Stripe? =

Settings > Money and commission, under "Taking payments online". Use the sandbox ticks first and press Test after saving.

* **Square** - in the Square Developer Dashboard open your application; copy the Application ID, the Location ID and an Access token. Under Webhooks add a subscription to the "Square webhook URL" shown in Settings for payment.updated and refund.updated, and paste its Signature key. Tick "Take cards through Square" and Credit card under the methods you accept.
* **PayPal** - in the PayPal Developer Dashboard create a REST app; copy its Client ID and Secret. Add a webhook to the "PayPal webhook URL" for PAYMENT.CAPTURE.COMPLETED and PAYMENT.CAPTURE.REFUNDED and paste its Webhook ID. Tick "Take payments through PayPal" and PayPal under the methods you accept.
* **Stripe** - in the Stripe Dashboard (Developers > API keys) copy the Publishable key and the Secret key; under Webhooks add the "Stripe webhook URL" for checkout.session.completed and charge.refunded and paste its Signing secret (whsec_...). Stripe stays off until both the secret key and the signing secret are saved, because Stripe reports a payment only through its webhook.

A webhook that is not signed with your key is refused, so a missing key is the safe failure: nothing is booked until it is right. Online buttons show on a bill only while something is owed and Credit card / PayPal is offered on it.

= A client paid online twice by mistake. =

Open the sale on the till: each payment has a refund form. A card or PayPal payment goes back through the gateway; you can never refund more than that payment took.

= What if I just want color booked as one solid block? =

Settings → Diary → turn off "Sell processing time". Everything else keeps
working. You will be giving away the hours, but it is your salon.

= Can I stop using it without losing my records? =

Deactivate it, don't delete it. Deactivating takes it off every screen and
touches no data. Deleting only destroys data if you have explicitly ticked
the box in Settings, which is off by default — because patch test records are
evidence an insurer may ask for years later.

= Does it take card payments? =

It records a payment, its method and its reference. Taking the money is still
your card terminal or your online gateway. It is not a card processor and
does not pretend to be.

= Which ways to pay does a client see? =

Settings > Money and commission > "Payment methods you accept": tick what the
salon takes - Zelle, PayPal, Venmo, credit card, check, cash - and type the
one line a client needs for each (your Zelle phone, your PayPal.me link, who
checks are payable to). Card, check and cash are ticked to begin with, and the
list can never be saved empty.

Every sale rung up at the till offers what you accept; open the sale from the
Till to untick a method for that client. The client's own page lists their
recent bills with "Payments received" (date, method, amount) and, where
something is still owed, the ways to pay with your details. A method you stop
accepting stays on sales already rung.

Taking a payment at the till lists the accepted methods first, then the
salon's own - gift voucher, prepaid package, bank transfer - which are never
offered to a client. Every payment keeps who rang it up and when, and a note
for the salon that the client never sees. "E-mail the client a receipt" is off
unless you tick it.

= Does TEG Back Office run payroll for my stylists? =

Yes. Install TEG Back Office beside the salon and its payroll lists every active stylist who has a login (link one on Team and rota), plus the front desk and managers. It pays commission exactly as the Commission page works it out - service and retail at each stylist's rates, and a period you have closed exactly as it was closed. Tips are kept beside commission, never added into it. Chair renters are not on payroll: they are self-employed and you are owed their rent. There is no time clock, so hours are typed on the payroll run.

== Changelog ==

= 1.20.0 =
* New Send with Rover button on the Diary: a booking that is Booked or Confirmed has one button for each kind of call (mobile appointment, event). It makes a draft visit with the client, the phone, the services and the time; type the address as before. It never books or moves the booking, and pressing it again opens the same call.
* A booking cannot have two open calls of the same kind, whether it is sent from the Diary or made on the Dispatch tab.
* The menu entry "TEG Rover" is now called "Visits & deliveries" (the phone app is still TEG Rover). The phone shows mobile appointments and events as visits, and the screen has a new Order of the day tab for setting the order of a stylist's calls.
* TEG Rover stays off until you turn it on; if you already use it, it stays on. Drivers need the current TEG Rover app.

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

= 1.19.3 =
* A coupon can no longer be used twice when two people at two tills apply it at the same moment; the second till is asked to try again.
* Changed: a coupon that would take off more than the bill still owes (after a part payment or a booking deposit, say) is now refused, with a message saying what is still owed. Before, it was applied.
* Phone payments the office confirms (Zelle, Venmo, PayPal from TEG Companion) no longer get stuck when a confirm is interrupted. The salon usually works out by itself whether the payment was recorded; when it cannot tell, the payment shows two "I checked" buttons on the Till, for the owner or a manager to decide. A confirmed payment's note now starts with [TEG Companion #number].
* An import from CSV that stopped half-way no longer blocks Undo, and two Undo clicks at once can no longer clash.

= 1.19.2 =
* "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.19.1 =
* New appointment now opens on the next free time for the stylist, and shows the next free start times under the time box.

= 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 sale opened on the phone always shows exactly what your client gets, in the salon language.
* Help Center and menu refresh.

= 1.18.0 =
* New: a Language screen in Settings. The salon has a language of its own, and each team member can also choose their own language for the screens they use (Users > Profile).
* What a client receives - receipts, appointment e-mails and texts, the booking page, the pay link - now always uses the salon's language, no matter 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.
* The Sales tax label no longer gets stuck in one person's language when someone saves a payments setting.
* Help: a new Language section in the manual and three questions 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-SALON > Licenses & permits, under SETUP) - a register of the licenses the salon and its team hold: the salon (cosmetology establishment) license, each cosmetologist / barber / nail technician license, the business license, 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.
* Reminder e-mails 60, 30 and 7 days before anything expires and when overdue; a dashboard box and a warning while a required license 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 £).
* App payments list shows the date your region's way.

= 1.17.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.
* Payments: card on file for automatic charging (off until you switch it on); a PayPal payment is checked against the bill before it is taken; the Square webhook accepts the www and non-www forms of your address.
* 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.16.1 =
* TEG Companion: a booking deposit now carries the appointment's number (APT12, was A12) everywhere, so Take payment finds it from the appointment; searches accept APT12, A12, #12 or 12.

= 1.16.0 =
* New: Help & Tutorials (TEG-SALON > Help & Tutorials). A full manual for every screen and a searchable list of questions and answers. Type a few words in the search box to find the right page at once. Every TEG-SALON screen has a round "? Help" button that opens the help for that screen. You can print the help or save it as a PDF, and Contact support is at the bottom.
* New: nightly backups (Settings > Backup). Turn on "Back up every night", pick the time and the salon is backed up on its own every night. It keeps the last 14 nights and one a week for 8 weeks. It can also send a copy somewhere else, so you still have your records if the web server is lost: another server (SFTP, FTP or FTPS), Amazon S3, Wasabi or another S3-compatible store, or Dropbox. Passwords and keys are kept scrambled and never shown again, and a backup never carries your card or payment keys. Use "Test connection" and "Run backup now" to check it works. Administrators see a notice if a nightly backup fails or the last good one is more than two days old. Backups you take by hand are never deleted by the schedule.
* New: one-click setup. The first time you switch the plugin on, a setup page saves your salon's name, e-mail and phone, makes your booking page and the client page and puts them in a menu, adds the Salon stylist and Salon front desk staff roles, and can load an example salon to try things on (Finish removes it again). Open it again any time from Settings > Backup, "Run setup again".
* New: Gift Coupons, Sales and Clubs (TEG-SALON > Sales & money). Give clients coupon codes that take money off a till sale (money off, a percentage off or one item free, on the whole bill, services or retail), with dates, a minimum spend and use limits, and a report of what each campaign brought in. Run sales that lower the price of services or products by themselves while they last; the till shows the sale price and the bill says what the client saved. Club plans and memberships: a member's discount goes on their sales at the till by itself, and staff can take it off one sale.
* New: Pay by Zelle. A sale that still owes money shows your Zelle address and the sale number to put in the memo: on the till, on the client's page and in the payment receipt you already send. Nothing new is e-mailed.
* New: Incoming payments (TEG-SALON > Sales & money). Zelle payments read from your bank's alert e-mails can be matched to the right sale by themselves when the amount and the sale number or the client's name agree for certain; the rest wait on the Incoming payments screen for you to apply or ignore. No receipt is sent for them.
* What's new: after an update, the first admin screen an administrator opens lists every release since the one they last saw, with "Don't show again until the next update". Staff no longer get the card.
* Fix: the warning above "Import data from a backup" now names a salon's records (it spoke of matters and trust ledgers).

= 1.15.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.15.0 =
* TEG Back Office payroll now lists your team: every active stylist with a login (under the name on Team and rota), plus the front desk and managers. Chair renters are left out - they are self-employed and pay you rent.
* TEG Back Office payroll reads each stylist's commission straight from Commission: the same service and retail figures, and a closed period exactly as it was closed. Tips are shown beside it, never added into it.
* Payments: bank transfer is recorded under one name (wire still works), and the shared payments, Companion, Rover and licence code is brought up to date (Device pairing hides IP addresses).

= 1.14.0 =
* The Diary runs the whole visit: New appointment and Edit (client, stylist, up to three services, day and time), and on each row Arrived, Done, No-show, Cancel, Delete and Start sale.
* The Diary heading shows the day you picked; it only says Today for today.
* The Till: New sale for a walk-in or a client, and on a sale Add service and Add product (name and price from the price list and the shelf, with a quantity) and Remove on each line. A bottle taken off a sale goes back on the shelf.
* The Price list, Team and rota, Chairs and Stock pages now add, edit and retire: services, sections, prices by level, stylists, working weeks, time off, chairs, products and stock deliveries, use, waste and counts.
* The client page records patch tests, color formulas, consultation notes and packages (sell, use one session), and can archive a client.
* Commission: choose the period to work out.

= 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 now "Device pairing" (first in Setup), and Settings is the last row of Setup.

= 1.13.9 =
* The sample data no longer leaves shampoo, spray and other retail products with negative stock; a few stay low on purpose so Running low has something to show.

= 1.13.8 =
* 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.

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

= 1.13.6 =
* The sample customer is now James Rockford.

= 1.13.5 =
* 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.

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

= 1.13.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.

= 1.13.2 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* Fix: taking a payment on a sale no longer works its tax out again at today's rate. A sale keeps the total and tax it was rung up with, also after the tax rate or the region changed.

= 1.13.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.

= 1.13.0 =
* Every client now has one Client notes box, on the client's screen on the computer and in the Companion app: the general notes first (Alerts, Notes, Scalp notes, Hair type), then the notes from their appointments, patch tests and the waiting list, with who wrote each one and which came from a stylist.
* New: the client's screen (TEG-SALON > Clients, click a name) has an Edit button for the client's details and notes, and the Clients list has an "Add client" button. Before, clients could only be added and changed from the booking form or the phone.
* "Add a note" on the client's screen and a note added in the Companion app both go in the client's notes, and every note now remembers who wrote it, also when that person is not a stylist.
* The Companion app's appointment screen shows the client's alerts and general notes on top.

= 1.12.1 =
* Report cards on the phone now open the matching page on the computer: "This month vs last month", "Rebooking" and "No-shows and cancellations" open the Dashboard, "Stylist utilization" opens Reports, and "Dead stock" and "Stock turn" open Stock. The other cards still open their box on the Reports cards page.
* Card names that fit a salon: the staff card is now called "Stylist utilization" (hours worked with clients against rota hours) instead of "Technician utilization", and the cash flow card says "Sales still open on the till" instead of "Open invoices falling due".
* 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".
* Fix: a card refund that is still waiting for the card company is checked again by itself after the plugin is turned off and on.

= 1.12.0 =
* New on the phone: report cards in TEG Companion. Each person picks the cards they want to see, and the cards are sorted into sections (Sales & money, Customers, Staff, Stock and so on). Only "This month vs last month" is on to start with; switch on any others you like.
* New: TEG-SALON > Reports cards on the computer. See every card on one page and compare with the last period, the same time last year, or dates you choose. Set a goal for a card and see how close you are. Download the figures as a CSV file or print the page.
* New cards for the salon: takings and average bill, this year vs last year, tax collected, busiest hours, repeat clients, takings by payment method, today so far, money coming in, discounts, refunds, lost clients, where new clients came from (in the salon, online or the app), no-shows and cancellations, product margin, how busy your stylists are and how full the diary is ahead, rebooking, stock that is not selling, how fast stock turns over, best times for each service and product, and "Owed to clients" (prepaid packages and deposits not used yet).
* New setting: "Lost customers after N days" (Settings > Money and commission, or on the Reports cards page). Choose after how many days without a visit a regular client counts as lost: anything from 30 to 730 days, 90 to start with.
* New: an optional monthly summary e-mail. On the 1st of each month the cards you tick are e-mailed for the month that just ended. It stays off until you save it once on the Reports cards page.
* With TEG Rover switched on, three more cards show what happens away from the salon: errand spending, time spent out on visits and money collected at the door. The dashboard's "Taken this month", the reports and the phone cards all count a sale the same way (a sale closed on the till, before tax, without tips), so they always agree.
* Turning the plugin off now also stops its scheduled e-mails.

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

= 1.11.0 =
* New: Import from CSV (TEG-SALON > Import from CSV). Bring in your clients, services and products from a spreadsheet or your old booking system. Match each column in the file to a field, then press "Test run" first - it checks every row and shows what would be added or changed, and saves nothing. When it looks right, import for real. Every import can be undone afterwards in one click.
* New: removable sample data (Settings > Sample data). Load a full set of example chairs, clients, services and visits to try the salon out, then remove exactly those examples with one click - your own records are never touched. The one-click installer can load it for you.
* TEG Rover: errands. Send a stylist or assistant on an errand - a beauty supply run, retail restock, towels and laundry, the bank or the post office - with a ready-made list to start from. They tick items off on the phone, note what they spent and take a photo of the receipt; you confirm the spending under Rover > Errand spending. Rover stays off until you switch it on under Setup > Phones.
* TEG Companion: shared Companion core 2.6.0.
* Updating runs one database step (database version 1.10.0): new tables for errands and for the CSV importer (so imports can be undone). Nothing you already have is changed.

= 1.10.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.9.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.9.0 =
* New: clients can pay online. A bill can be paid by card (Square or Stripe) or PayPal from the client's own pay page, and a booking's deposit can be paid before the visit. When the visit is rung up, a deposit already paid comes off the bill and is never asked for twice. Set it up under Settings > Money and commission. Every payment service is OFF until you switch it on, so updating changes nothing your clients see.
* Card details never reach your site. Keys and secrets are kept in Settings only, a saved secret is never shown again and never goes into a backup.
* Payment notices from Square, PayPal and Stripe are checked for a valid signature and booked once: a payment sent twice is recorded one time only. A payment in another currency than the bill's is not booked against it, and staff get an alert.
* Refunds: each payment on a sale has a refund form. A card or PayPal payment goes back through its service; a cash one is written back by hand. A refund is never more than was paid, and a double click refunds once.
* Money taken online for a bill that no longer needs it (voided meanwhile, already paid at the desk, or a deposit for a visit already rung up) is never put on that bill. It is kept aside, on no bill and in no takings report, and staff get an alert to refund it or apply it by hand.
* New: take payment from TEG Companion (Square): a bill open at the till or a booking's deposit, by Square on the phone, a Square Terminal or a pay link. A card payment counts only once this site has checked it with Square. Off until switched on under Settings > Money and commission.
* New: Settings > Region - United States, United Kingdom or European Union (currency, money format, tax label, payment methods). An updating salon stays in the United States, exactly as before - unless its saved currency is £ / GBP (it becomes United Kingdom) or € / EUR (European Union); its tax label and rate stay as they were. A region already saved is never changed.
* New: TEG Rover, the phone app for mobile stylists (house calls and events from the diary). It is OFF until you tick "Rover (drivers / field staff)" on Setup > Phones, on a new salon and on one that updates.
* One list of phones: TEG Rover and TEG Companion pair under Setup > Phones and share one key store. Phones already paired for TEG Companion are moved over by the update and keep working. The Companion home screen defaults are on the same page.
* New help page: Settings > Money and commission > "Getting paid online".
* Updating from 1.6, 1.7 or 1.8 runs one database step (database version 1.9.0): new columns on payments, sales and bookings, and new tables for payment notices, Companion payments and TEG Rover. Every payment already recorded is kept exactly as it was.

= 1.8.0 =
* Chair rent is pro-rated to the commission run's dates: weekly rent a seventh per day, monthly rent split by the days of each calendar month the run touches.
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed.

= 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 =
* Settings > License > Get my license: enter the order number and the e-mail from the purchase and the license downloads and installs itself (no copying the code). A multi-site license gives each website its own seat; the License tab then says plainly that this website is licensed, what the license is and which order it came from.
* Check license picks up a renewal or upgrade bought from the same store account (never a downgrade, never removes anything) and runs quietly once a day. Release this website frees the seat for another site. Pasting the code by hand still works.

= 1.6.1 =
* Sample salon: thirty clients, and a diary that has been trading - about six weeks of appointments behind today (finished, a few no-shows and cancellations), today, and the week ahead - with a closed sale for every finished visit, a third with a retail product, plus walk-in product sales. The sample is now deterministic (no random numbers), so a reload gives the same diary.

= 1.6.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or 9-digit code) to run the day from a stylist's pocket - book appointments and move them through arrived / in the chair / finished or no-show, clients and their alerts, notes, photos and signatures, payments against a sale and the day's takings. Nothing is e-mailed or texted to a client from the phone.

= 1.5.0 =
* Admin menu grouped by job with bold headings (FRONT DESK, TEAM & CHAIRS, PRICES & STOCK, SALES & MONEY, SETUP), alphabetical within each group. 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.3 =
* 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.2 =
* The admin menu now reads TEG-SALON, like the other TEG shops.

= 1.4.1 =
* Fixed: the chairs table was never saved. It could not be created on MySQL or MariaDB because one of its columns ("accessible") is a reserved word; the update creates it. Reload the sample house or add your chairs under Salon > Chairs.

= 1.4.0 =
* "What's new": after an update, a short card on the TEG-SALON 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.

= 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 TSN_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. Salons 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, 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 > Money and commission lists Zelle, PayPal, Venmo, credit card, check and cash, each with a details line shown to the client. Card, check and cash stay ticked on an upgrade, so nothing a client sees changes until you opt in. Saving with nothing ticked keeps the previous list and says so.
* Ways to pay on every sale: a new sale offers everything you accept; open it from the Till to untick a method for one client. A method you stop accepting stays on sales already rung.
* The Till now opens a sale: its lines, the Ways to pay tick list, the payments with who rang each up, when and the note, and the take-payment form (method, refund, tip and whose tip, a staff-only note, an optional receipt) and Close.
* The client's own page lists their recent bills with "Payments received" (date, method, amount - never the note) and, while something is owed, the ways to pay.
* "E-mail the client a receipt" is unticked unless you tick it, and sends a plain receipt with the amount, method, date, sale reference and what is left to pay.
* A comment inside the payments table definition was moved out: a comment there stops the WordPress upgrader adding the columns after it.
* 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 =
* 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.
* Fixed Remove and Re-check on the License tab, which stopped with an error; Re-check now really checks again.
* 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.
