=== TEG-VETCLINIC ===
Contributors: theeldestgeek
Tags: vetclinic, business, invoicing, small business
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.21.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clients, patients, the diary, clinical records, the dispensary and billing, for a veterinary practice.

== Description ==

The veterinary practice back office. Clients and their animals, a diary the front desk can live in, consultations written the way a vet writes them, vaccinations and prescriptions recorded against the lot they came from, a dispensary that knows what expires when, estimates that are ranges because surgery is, and the reminders that bring an animal back.

* Clients and patients, with the alerts and allergies repeated in red on every screen showing that animal
* An age that reads the way a vet says it, and a date of birth that can be marked an estimate
* Weight as a series with a trend, not a field
* A day diary with a column per vet and a waiting-room strip, and double bookings refused by name
* Consultations in the four parts, locked when closed so a correction has to be an addendum
* Vaccinations carrying their lot, so a recall can name every animal that received it
* Prescriptions with controlled drugs behind their own permission
* A dispensary with lots and expiry dates, and an expired lot refused at the point of use
* Invoices from a consultation, estimates as a low and a high, and payments against the account
* Takes card payments online through your own Square, Stripe or PayPal account (the client pays an invoice on its own page, in full or in part), and on a Square Terminal at the front desk; refunds from the invoice screen; cash, checks, Zelle, wires and the rest recorded at the desk or on the phone
* Reminders raised from what is actually due, and never sent about a patient that has died
* Reports: activity, revenue, vaccination compliance, stock and expiry, lapsed clients
* TEG Rover (the vets' phone app) - switched OFF until the practice turns on "Rover (drivers / field staff)" under Setup > Device pairing; then TEG-VETCLINIC > Front desk > Visits & deliveries. Farm calls, house calls and home euthanasia, from the diary. The office makes a call from an appointment (its owner, address, patient and time fill in) and puts it on the open board or gives it to a vet or nurse; they claim it (two can never take the same one), get directions, mark arrival (the appointment becomes Arrived), tick the checklist, take the owner's signed consent and complete it (the appointment becomes Completed). It is built to work with no signal: the phone queues what it does and sends it when the signal returns, a completion or photo sent twice is stored once, and the times the phone recorded are kept. Claiming an open call needs a connection, and a call the office cancelled while the phone had no signal refuses the late completion (the phone is told). What reaches the phone is short and never clinical: the owner's name, address and phone, the patient's name and species, and the booked reason once the call is yours - no notes, diagnoses, prescriptions, allergies, alerts or weights. Writing up the consultation stays on the website. What is taken at the door waits for the office, which confirms it and it becomes a payment on the visit's invoice. Location is shared ONLY while on shift; each phone pairs by scanning a QR code under Setup > Device pairing with its own revocable key, no passwords; the data stays on your own site, and there is no monthly fee per vet.

Data lives in your own database, in tables this plugin creates. Nothing is sent
anywhere: the only outbound request is the license check, and that carries the
code and nothing else.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` and activate it.
2. Open TEG-VETCLINIC in the admin menu and work through Settings.
3. A 30-day Pro trial starts on first run. There is nothing to enter.
4. To put a block on your own page, paste a shortcode: [teg-vetclinic-book], [teg-vetclinic-register], [teg-vetclinic-account], [teg-vetclinic-repeat] or [teg-vetclinic-team] (full list: Help Center > Shortcodes).

== Frequently Asked Questions ==

= What happens when the trial ends? =

The shop pauses rather than locking. Everything already recorded stays readable
and exportable; new entries wait until a license is active.

= Does my data leave the site? =

No. The only outbound request is the license check.

= Can I delete the plugin without losing everything? =

Yes. Uninstall keeps your tables unless you have explicitly turned that off in
Settings, Data and updates.

= Can clients pay their invoices online? =

Yes, through your own Square, Stripe or PayPal account (no fee to us). Switch a gateway on under Settings > Payments and tick Credit card (or PayPal) among the methods you accept: the client's invoice page then shows "Pay online", the whole balance or part of it, and the overdue-account e-mail carries the link. A Square Terminal at the front desk takes the balance from the invoice screen. Card details never reach your website. Every payment and refund is recorded once, on the invoice, in the money the invoice was issued in.

= We already took card payments before 1.16 - do I have to set anything up again? =

No. The webhook addresses, the saved keys and the payment history are the same; only the engine behind them is new (the payments module every TEG shop now shares). A secret you kept in wp-config.php is copied into Settings > Payments once, and a notice says you may remove it from wp-config.php.

= Can I run the front desk from my phone? =

Yes, with the TEG Companion app. TEG-VETCLINIC > Setup > Device pairing (TEG Rover and TEG Companion share this list and one key store) makes a pairing code (QR, text or, for TEG Companion, a 9-digit short code) for one person; the phone can do what that person can do and no more. Clinical notes are read-only on the phone, and a closed consultation takes addenda only.

== Changelog ==

= 1.21.0 =
* New: a Send with Rover button on the appointment screen. An appointment that is Booked or Confirmed shows one button for each kind of call (farm call, house call, home euthanasia). Pressing it makes a draft visit with the owner, the address, the patient and the time already filled in; it never books or moves the appointment, and pressing it again opens the same call. An appointment cannot have two open calls of the same kind.
* The menu entry "TEG Rover" is now called "Visits & deliveries" (the phone app is still TEG Rover). It has a new Order of the day tab for setting the order of a vet's calls.
* When a call cannot be done, the vet picks a plain reason on the phone, including the animal has to come to the practice instead and not safe to handle the animal or the place. A home euthanasia never writes a note on the owner's record.
* Rover stays on or off as you had it (it is off until you turn it on). Drivers need the current TEG Rover app.

= 1.20.1 =
* Help: the Shortcodes page and the manual now list the current teg-vetclinic-... names for the tags you can put on your website pages.

= 1.20.0 =
* Help Center: Help & Tutorials is now the shared TEG Help Center - the full manual (every screen and every settings tab, brought up to date for this version) and a searchable FAQ, with a "?" on every screen that opens the help for that screen. Everything the old Help page said is in the manual. The page keeps its address (admin.php?page=tvc-help), so bookmarks still work.
* Get support: a "Get support" button at the top of every screen (and in the WordPress bar) opens two choices, Report a problem or Request a feature. The short form sends the screen you came from, the practice name and the WordPress and PHP versions with your message (never a client's name, address or record), files a ticket with The Eldest Geek support and e-mails a copy; the answer comes to the e-mail address you give. Ask a question or whether it already does something from the same screen. At most 5 messages per person and 20 per site an hour. The page is under Tools > Support & feature requests. In a live demo a red "Questions? Get help" strip sits at the top of every screen; it opens our contact form on the demo site.
* What's new: when you have skipped updates, the What's new button on the Dashboard lists every release since the one you last opened, each under its version.
* New: backups (Settings > Data & updates, administrators). Back up now writes everything the practice holds (every record and the settings) to a private folder on this server as one file; download it, delete it, or upload one you downloaded. Restore replaces everything with a backup behind a typed RESTORE, takes a safety backup first, refuses a backup from a newer version, and changes nothing at all if the database refuses a single row. Card gateway keys, the text-message secret and other credentials never go into a backup and a restore keeps the ones saved now; the paired phones and the chosen client page are never changed by a restore. Scheduled backups: a backup every night at the time you set (default 02:30), copied off-site if you choose - SFTP, FTP / FTPS, Amazon S3 / Wasabi / S3-compatible, or Dropbox - keeping the last 14 plus one a week for 8 weeks; passwords and keys 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. Off by default. This practice had no backup of its own before.
* One-click setup: on first activation (and from Settings > Data & updates, Run setup again) a setup page saves your practice details, makes the client pages (Our practice, Register as a new client, Repeat prescriptions, Our team) with a "Practice pages" menu, makes any missing staff roles, and can load the safe sample practice that Finish removes again (unless you keep it). A practice that already has records never gets the sample. Help has a new First-time setup section. After this update an administrator sees a one-line notice offering the setup until they start it or press No thanks.

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

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

= 1.18.0 =
* New: a Language screen in Settings. Each staff member can choose their own language for their own screens (on their profile), and the practice has a language of its own for everything a client receives, so what a client gets no longer depends on who clicked.
* The discharge sheet, the vaccination certificate, invoices and estimates, receipts, appointment reminders (e-mail and text), e-mails to clients and the client page are written in the practice language. The clinical record and the registers follow the staff member looking at them.
* Language packs (Spanish first) arrive later and need the Pro edition. Until a pack is installed everything stays in English, exactly as before.
* Help: a Language entry in the manual and new questions in the FAQ.
* Shared pieces brought up to date: language module 1.1.0, payments core 1.5.0 and app payments core 1.3.0.

= 1.17.3 =
* New: Licenses & permits (TEG-VETCLINIC > Setup > Licenses & equipment) - keep your licences, permits, insurance and equipment checks in one place, with reminders before they expire and a printable binder for inspectors. The presets fit a practice: DEA registration (controlled substances), the state controlled substances registration, the veterinary establishment permit, each veterinarian's and veterinary technician's license and the business license (BPOL), 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.
* Equipment & inspections: the X-ray unit (registered and inspected by the state's radiological health office), the autoclave / sterilizer and the patient scales, with each inspection or calibration and its certificate; a reading out of tolerance flags the equipment. (The controlled-drugs register itself stays under Inventory.)
* Reminder e-mails 60, 30 and 7 days before anything expires or falls due and when overdue; a dashboard box and a warning while anything required is missing or expired; a one-click inspection binder (print, PDF or a ZIP of the scans) and a 7-day view link.
* Scans are kept in a private folder (never the media library) with their hidden metadata removed, every view is logged, and the register is in every backup. Deleting the plugin keeps the register unless you choose otherwise. The presets are examples (Virginia first), not legal advice.
* Help: a Licenses & permits section in the manual and two new questions in the FAQ.

= 1.17.2 =
* TEG Companion reports can show older months too (this month, last month and up to 10 more; set how many in Companion).
* Shared pieces brought up to date: TEG Companion core 2.16.0.

= 1.17.1 =
* Payments: the currency symbol always matches the currency (a US shop never shows £).
* The app payments list in TEG Companion shows the date your region's way.
* Shared pieces brought up to date: payments core 1.4.0 and app payments core 1.2.2.

= 1.17.0 =
* Changed: dates and times follow your region everywhere - screens, printed invoices and records, e-mails, the client page and TEG Companion. A US practice sees 11/09/2026 and 2:30 pm, a UK one 09/11/2026 and 14:30, an EU one its country's way. Leave Settings > Money & measures > Date format blank to use the region's, or type your own; a format you already typed is kept.
* Changed: the diary board's times and the short dates in TEG Companion ("Visit Nov 9" / "Visit 9 Nov") follow the region too, no longer the WordPress date and time settings.
* Changed: TEG Companion is told the practice's date format, so the app shows dates the practice's way.
* Fixed: sample invoices loaded by older versions now carry the practice's region like every other invoice (they printed with the old pre-region settings). Amounts are unchanged, and your own invoices are never touched.
* Changed: TEG Rover's screens (dispatch, the map, the visit record, "Recorded offline", errands) and the Customer notes panel write dates and times the region's way too.

= 1.16.3 =
* Fixed: invoices charged in dollars no longer show a pound sign. Invoices written before the US / UK / EU setting existed (and sample invoices on the demo) printed and showed in TEG Companion with a £ sign - sometimes as "Â£" - although they were in US dollars. The sign now always matches the invoice's currency; the amounts are unchanged.
* Fixed: TEG Companion now gets the practice's currency (USD, GBP, EUR) as well as its sign.
* Changed: a new practice starts in US dollars with "Sales tax" (before, a pound sign and "VAT" until the region was saved).
* Fixed: loading the sample data gives the sample practice its name and details (Riverside Animal Hospital, Strasburg VA) wherever you have not typed your own, so screens and TEG Companion no longer show the website's title as the practice name. A name, address or phone you typed is never replaced.

= 1.16.2 =
* 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.
* Shared pieces brought up to date: payments 1.3.0 (ready for saving a customer's card for later charges; off unless switched on), TEG Companion core 2.14.0 and TEG Rover core 1.9.1 (work done on a phone while offline keeps the time it was really done; pairing a phone with Rover switched off just works).

= 1.16.1 =
* TEG Back Office, the appointment board, two-factor, TEG Companion and the team page now list the practice's people in one order: veterinarians first, then veterinary nurses, then anyone else with access to TEG-VETCLINIC, then the administrators - each person once. Nobody is added or dropped: only the order changes.
* "Get my license" 1.0.1: a code that would switch off a product the current one carries is never installed over it.

= 1.16.0 =
* Payments now run on the payments module every TEG shop shares: card payments online through your own Square, Stripe or PayPal account, a Square Terminal at the front desk, refunds, and everything recorded by hand. Nothing you set up moves: the same webhook addresses, the same saved keys, and every payment and refund already recorded stays exactly as it was.
* The client pays an invoice on its own page (the link they already have), in full or in part, or on the new pay page; the overdue-account e-mail starts with "Pay online" and the link, and the invoice screen shows the link with "E-mail the client this link".
* Refund any payment from the invoice screen, never more than it took: a card or PayPal payment goes back through its gateway, a payment taken by hand is written back by hand. A double click refunds once.
* Square Terminal: send the balance to the terminal at the desk from the invoice screen (pair it under Settings > Payments).
* TEG Companion: Take payment on an invoice - a Square payment link, the desk's Square Terminal or the Square app on the phone, recorded only once Square confirms it; Zelle, Venmo and PayPal wait for the office to confirm. A wire can still be recorded from the phone.
* A bank transfer (a wire from an insurer or a referring practice) stays recordable at the desk and on the phone in the US too, as before.
* Settings > Payments never shows a saved secret again (leave it blank to keep it), and a key kept in wp-config.php is copied into Settings once; you may then remove it from wp-config.php.
* A card payment that arrives for an invoice already paid another way is kept aside for the office (with an alert) instead of overpaying the invoice, and is never counted in the day's takings or the client's balance.
* Payments CSV (this month) on the Billing screen. Pay-by-QR codes for Zelle, Venmo and Cash App under Ways to pay, if you switch them on.
* A whole card number typed as a payment's reference is refused.

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

= 1.15.8 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.
* The Help page is called Help & Tutorials in the menu, and the help pages now point to Setup > Device pairing.

= 1.15.7 =
* The sample practice no longer adds a second copy of its diary each day it is loaded again; a clinic that had the pile of repeated sample bookings (for example Cab's dental booked over and over) has them tidied away once, keeping the next one that is still ahead. Anything your team edited, checked in or saw is left alone.
* The phone app's "Open appointments" no longer lists booked appointments whose time has already gone by.

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

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

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

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

= 1.15.2 =
* Customer links (invoices, quotes, bookings and the like) only open with their exact key; a link with a blank or altered key opens nothing.

= 1.15.1 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* Taking a payment on an older invoice no longer works its tax out again at today's rate: the invoice keeps the total it was issued with.

= 1.15.0 =
* Region setting: one tick switches the shop between the United States, the United Kingdom and the European Union - currency, dates, tax, address wording, spelling and the ways customers can pay. Invoices already issued never change. The sample data now reads as a US business.
* A practice is a US one to begin with: dollars, sales tax (enter your state's rate), month/day/year dates, ZIP code and state. Before, a new practice started with a pound sign and VAT. An updating practice that never changed those settings moves to dollars and sales tax; one that typed GBP as its currency stays in the United Kingdom, with its own tax label and rate.
* Settings > Region shows what the region sets, which settings are your own (they are kept when you switch), a button to apply the region's defaults, and a short checklist for your region (state premises registration and DEA in the US, RCVS registration and VAT in the UK).
* Every invoice and estimate keeps the region it was issued in: its money, dates, tax and wording on screen, in print, on the client's page and on its receipts, and the card payment page charges in its own currency. A payment taken later never works its tax out again at a new rate. A draft follows your current settings until it is issued.
* 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.
* Payment methods follow the region: ACH bank transfer and Cash App / Apple Pay / Google Pay join the US list; the UK offers card, cash, bank transfer, cheque and PayPal; the EU card, cash, SEPA transfer and PayPal. A payment already recorded with another method still shows as it was.
* New Date format and Time format settings under Money & measures (blank uses the WordPress format).
* Fixed: on an animal's page, a visit in the Visits list now opens that visit. It used to open an empty list of consultations.

= 1.14.0 =
* Every client now has one Owner notes box, on the desktop and in the Companion app: the general notes first, then the notes from their visits, appointments and invoices, with who wrote each one and which came from a vet or a nurse.
* The general notes at the top are the client's flags and front-desk notes, and each animal's alerts, allergies and notes. Alerts and allergies show in red.
* The notes from records are the consultation notes and addenda of each visit, the front-desk notes on appointments, vaccination notes and reactions, weight notes, the notes printed on invoices and boarding notes. Each one says where it came from, such as "From Visit Oct 3 - Rex", with a link.
* You can add a note about the client from the box on the client's page, or from the phone on the client, an animal or an invoice. Before, the phone only took notes on an appointment. A note on an appointment is still added to the closed consultation as an addendum, as before.
* On the phone, the notes box is shown only to people who may write clinical records, because it includes the consultation notes. Notes on the phone were already limited to them.
* Invoice numbers on the client's and the animal's pages now link to the invoice.

= 1.13.1 =
* Report cards on the phone now open the matching page on the computer: sales, tax and margin open Reports > Revenue, busiest hours open Reports > Activity, repeat and lost clients open Reports > Clients and patients, no-shows and rebooking open Reports > Appointments, stock turn opens Reports > Inventory, stock that is not moving opens the Dispensary, overdue invoices open Billing with only the overdue ones showing, and the estimate card opens your estimates.
* The cards now use the practice's own words: "Estimate to approval" instead of "Quote to approval", "Estimates waiting" and "Reminders due" on the follow-ups card instead of quotes and call-backs, and "Repeat clients" instead of "Repeat customers". The no-shows card no longer talks about what a missed appointment cost, as appointments carry no price.
* Clearer date ranges on the cards, such as "October 1" for a single day and "Jan 5-10" for a few days.
* Sample data: the unpaid sample visit that should show as overdue now always does, whatever the date.

= 1.13.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 (such as Every day, Money, Customers, Bookings and Stock). Only "This month vs last month" is on to start with; switch on any others you like.
* New: Reports cards on the computer (in the TEG-VETCLINIC menu). 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 clinic: sales and average invoice, this year vs last year, tax collected, busiest hours for consultations, repeat clients, takings by payment method, today so far, money coming in over the next 30 days, overdue invoices with estimates waiting and reminders due, discounts, refunds and voided invoices, lost clients, no-shows and cancellations, rebooking, margin on what you sell, stock that is not moving, how fast stock turns over, and the best times for each medicine and product.
* New setting: "Lost clients after N days" (Settings > Billing, 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. A client whose only animal has died is never counted as lost.
* 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.
* Fix: draft invoices are no longer counted as sales. Reports > Revenue, its CSV download, and the phone's cards and "invoiced today" figure now count an invoice only once it is issued (and never a void one), so a draft you have not sent yet no longer makes your sales look bigger. The Revenue page says so under the figures.
* The Revenue report and the phone cards now work out sales the same way, so they always agree. With TEG Rover switched on, its own cards show up as well.
* Turning the plugin off now also stops its scheduled e-mails.

= 1.12.0 =
* New: TEG Rover, the phone app for vets on farm calls, house calls and home visits, now comes with the plugin. It stays switched off until you turn it on under Setup > Phones ("Rover (drivers / field staff)"). Once on, the front desk sends a visit from a diary appointment to a vet's phone; it works with no signal and clinical notes stay on the website. TEG Companion pairs on the same Phones page, and phones paired before keep working.
* New: errands for TEG Rover. Send a staff member on a run - the veterinary wholesaler, the pharmacy, the lab courier, the bank or the post office - with a ready-made shopping list; they tick items off on the phone and note what they spent.
* New: Import from CSV (Setup > Import from CSV). Bring in your clients, their animals and your services, supplies and food from a spreadsheet. Match your columns to ours, do a test run that shows what would happen without saving anything, then import. Every import can be undone. Medicines, vaccines and controlled drugs are never created or changed by an import. Like every other change, importing needs an active licence.
* Sample data: the one-click installer can load a full sample practice (clients, animals, visits, invoices, payments, the diary and reminders) and take it all away again in one click under Settings > Data and updates. It refuses to load into a practice that already has records.
* TEG Companion and the licence check brought up to date; the licence check never holds up a page for long when the licence server is slow.

= 1.11.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.10.1 =
* Demo sites never take a real payment: on a demo (Demo mode, or the TEG SHOPS demo) the pay area says This is a demo - no payment is taken, every pay link and webhook is refused and nothing is recorded as paid.

= 1.10.0 =
* Card payments by Stripe stay OFF until the Stripe webhook signing secret (whsec_...) is entered under Settings > Payments; Square and PayPal are not affected.
* One payment per gateway id (gateway_ref locked unique; desk payments are never counted as repeats).
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed. DB 1.6.0.

= 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.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.8.2 =
* Get my license: Settings > License - enter the order number and e-mail to install your license; Check license; Release this website.
* Reports > Clients: the lapsed-patients list works on MariaDB (it ordered by an aggregate alias, which MariaDB refuses, so the list came back empty), and the stock report shows the real value on hand at cost and retail (it showed 0: its query used the reserved word LINES as a column name).

= 1.8.1 =
* The sample practice now looks like a real, busy, entirely fictitious clinic: 20 clients, 36 animals (dogs, cats, rabbits, birds), 60 days of visits with notes, vaccinations, prescriptions and weights, invoices paid and unpaid, this week's diary and a few reminders - all dated relative to today. Names, phones (555-01xx) and e-mails (@example.com) are invented. Loading it twice changes nothing.
* Six of the sample animals come with a photo (free-licence pictures, credited in sample-data/photos/SOURCES.md), added once and reused on every reload.

= 1.8.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or code) to work the front desk from your phone - owners and their animals, appointments, invoices and payments taken. Clinical notes (SOAP) are read-only on the phone, and a closed consultation takes addenda only.

= 1.7.0 =
* Clients sign in to "My pets" with a one-time link instead of a private link that never expires: they type the e-mail address - or, when text messages are switched on, the mobile number - you hold for them, and a link that works once, for 15 minutes, signs them in. There is no password. The page gives the same answer whether or not the address is one of yours, so nobody can use it to find out who your clients are.
* A household that shares one address gets one link, and after signing in picks whose page to open - from those clients only.
* "Sign out" and "Sign out on every device" on the client's page; a sign-in lasts 12 hours (both times are settings).
* New screen: TEG-VETCLINIC > Portal sign-in. Old private links keep working for now (on for existing practices); switch them off there with one click when your clients are used to signing in - an old link then shows the sign-in form. Also: sign everybody out, and the recent sign-in activity. E-mail addresses and numbers are never written to the log.

= 1.6.0 =
* Admin menu grouped by job with bold headings.
* Pairing/2FA QR codes support longer codes.

= 1.5.1 =
* 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.0 =
* "What's new": the practice screens show what changed once per staff member per version, then a small "What's new" button on the Dashboard reopens the same notes in a dialog. In Demo mode, where every visitor shares one login, the "seen" state is remembered per browser instead, so one visitor dismissing it never hides it from the next.

= 1.4.2 =
* License check-in is more patient with a slow or blocked connection: a failed check is remembered for a few minutes instead of trying again on every page, and the License panel now shows the actual connection error instead of guessing it is your internet. A license still awaiting its first check-in is now labeled AWAITING VALIDATION rather than a plain revoked-looking state. Entering a license code checks in right away and says how it went.

= 1.4.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.4.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 with license server" completes it. Practices 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 and client card payments (Square/PayPal/Stripe), and business/CSV exports. Reading, viewing, printing and exporting your own data for portability are always allowed; a payment already in flight is never interrupted.
* The License panel shows when a license is in use on more sites than it was sold for.

= 1.3.0 =
* Settings > Payments has a new "Payment methods you accept" list: Zelle, PayPal, Venmo, Credit card, Check and Cash, each with a tick box and one line of details (your Zelle e-mail or phone, PayPal.me link, Venmo @handle, "Checks payable to ..."). Card, check and cash start ticked, so nothing your clients see changes until you tick more. At least one method always stays ticked.
* Every invoice has a "Ways to pay" tick list, all accepted methods ticked on a new invoice; untick any this client should not use. The printed invoice, the client's page and the overdue-account letter show each offered method with its details while something is still owed.
* Stop accepting a method and it leaves new invoices, while invoices already issued keep showing what they offered.
* The online card button (Square or Stripe) now shows only when Credit card is accepted, and the PayPal button only when PayPal is, as well as the gateway being switched on.
* Recording a payment lists your accepted methods first and the practice's own ones (bank transfer, insurer direct claim, on account) under "Other". Payments recorded as "Cheque" before now show as Check; nothing stored is rewritten.
* Every payment now records who took it, when, and a staff note. The invoice screen shows all three; the printed invoice and the client's page list "Payments received" by date, method and amount, and never the note.
* A new "E-mail the customer a receipt" box when recording a payment, unticked until you tick it.
* Online PayPal payments are now recorded as PayPal rather than as a card payment.
* Fixed: an online payment arriving while "E-mail a receipt" was switched on under Settings > Payments stopped with an error after the payment was recorded, and the receipt was never sent. It is now sent.

= 1.2.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.2.1 =
* Updates are checked against your license: a lifetime or current license installs any update, and an expired license can still install anything released on or before its expiry date
* The update panel now shows on the Data and updates tab: whether the check works, which version is offered, and why one is held back
* Ready for PHP 8.4 (the version in Debian 13): no more deprecation notices in debug.log from the card payment code
* 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.2.0 =
* Sex and neutering are recorded separately, so "male, neuter status unknown" can finally be written down for a stray or a transfer
* Existing records are converted automatically: male neutered and female spayed carry across, and a plain male or female keeps its sex with neutering marked unknown
* Records and vaccination cards can now say "Male entire" and "Female entire"

= 1.1.1 =
* The printed record summary has a Tests and imaging section, with radiographs and other images shown rather than linked
* Sample data correction: Zinfandel is a spayed female

= 1.1.0 =
* Reminders by text message through Vonage, with their own short template and a client opt-out. Choosing "Text message" used to queue reminders that were never sent
* Card payments on an invoice through Square, PayPal or Stripe, with part payments on by default
* Two-factor sign-in with a QR code for the usual authenticator apps, backup codes, a lockout and an admin reset for a lost phone
* A sample practice to load and explore: one client, four animals and a real case with a diagnosis, a prescription and a radiograph
* Images attached to a test show as a thumbnail in the record, not the word "attachment"

= 1.0.0 =
* First release.
* Clients and patients, with the alerts and allergies repeated in red on every screen showing that animal
* An age that reads the way a vet says it, and a date of birth that can be marked an estimate
* Weight as a series with a trend, not a field
* A day diary with a column per vet and a waiting-room strip, and double bookings refused by name
* Consultations in the four parts, locked when closed so a correction has to be an addendum
* Vaccinations carrying their lot, so a recall can name every animal that received it
