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

Jobs, engineers, certificates and invoicing, for an electrical contractor.

== Description ==

The electrical contractor's back office. Customers and the properties they own, a week board with an unassigned pile, quotes that become jobs, van stock per engineer, invoices built from the job sheet, and the certificates the whole trade turns on: installation certificates, condition reports with their observation codes, minor works and appliance testing, with the renewals chased before they lapse.

* Customers and sites, so a landlord with forty flats is one customer and forty properties
* A week board by engineer, an unassigned pile, and a job sheet with labor in minutes and parts from the van
* Certificates as structured records: circuit schedules, readings kept as written, observations with their codes
* Outstanding C1 and C2 findings on the front page, because that is the number a contractor is exposed by
* Issuing refused unless the person signing is qualified, insured and permitted to certify
* Renewal dates computed per certificate kind and property type, and chased automatically
* Appliance testing as an asset register with a test round per site
* Quotes with optional lines, a lost reason, and conversion to a job
* Invoices from the job sheet, with the construction-industry deduction taken from labor only
* Takes card payments online through your own Square, Stripe or PayPal account, and Square Terminal at the counter: the customer pays the invoice on their copy (the link in the invoice e-mail), refunds go back through the gateway, and TEG Companion takes payment from the phone
* Van stock per engineer, restocked from the store in one form
* Reports: money, jobs, engineers, quote win rate, the certificate renewal pipeline, parts margin
* TEG Rover (new in 1.5.0) - the office side of the TEG Rover phone app for your engineers on service calls, estimate visits and permit inspections. Under TEG-ELECTRIC > TEG Rover the office makes a call from a job in the diary (its customer, site and day come with it), sets a priority, a time window and the job checklist, and either assigns an engineer or puts the call on the open board, where the first engineer to claim it gets it (two can never take the same call). Each engineer's phone pairs once by scanning a QR code (TEG-ELECTRIC > Setup > Device pairing) and gets its own revocable key, no passwords. The phone sends its GPS position every 5-10 minutes ONLY while the engineer is on shift; the office sees each engineer's last check-in, a live map with the calls as pins (OpenStreetMap, or Mapbox with a map token from TEG on a paid license), a route for any day, the closest engineer to a call, and a "probably on site" hint when an engineer is at the address but has not pressed Arrived. Every step is written to the job's own timeline: a service call moves the job to In progress on arrival and to Complete when it is finished, with the customer's name signed on the phone; an estimate visit turns into a draft quote with one click. A visit cannot be completed until every checklist item is ticked and the photos and signature the call requires have been sent. The phone gets the site's hazards and board location, and the access notes only once the call is that engineer's; certificates and test readings are not filled in on the phone and stay in this plugin's own screens. Money taken at the door is recorded with its method and waits for the office to confirm it before it goes on the invoice (no card processor on the phone yet). Photos and signatures are private files only signed-in office staff can open (kept in a protected, randomly named folder under uploads that the plugin makes by itself - nothing to set up); location check-ins are deleted after 30 days by default and are part of WordPress's personal data export and erase. The TEG Rover phone app itself is Android first; it needs version 0.2.2 or later to pair with TEG-ELECTRIC (earlier versions only know TEG-REPAIRSHOP). Runs on this plugin's own license; the data stays on your own site, and there is no monthly fee per engineer.

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.

= Companion app =

TEG Companion is the phone app for running the shop away from the desk: customers and sites, jobs and their status, notes, photos and the customer's signature, invoices, quotes and certificates (read only), payments taken and the day's takings. It talks to this plugin as the person it was paired for, so it can do only what that person can do here. Pair a phone under TEG-ELECTRIC > Setup > Device pairing (one key list serves TEG Rover and TEG Companion); photos and signatures are kept in a private folder, never in the Media Library; nothing is ever e-mailed to a customer by the app, and a payment taken from the phone sends no receipt.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` and activate it.
2. Open TEG-ELECTRIC in the admin menu and work through Settings.
3. A 30-day Pro trial starts on first run. There is nothing to enter.
4. Website shortcodes: `[teg-electric-book]`, `[teg-electric-quote]`, `[teg-electric-account]`, `[teg-electric-certificate]`, `[teg-electric-services]` and `[teg-electric-sales]` (full list: Help Center > Shortcodes).

== Frequently Asked Questions ==

= United States or United Kingdom? =

Settings > Business > Region. United States is the default: US dollars, sales tax (you enter your own rate; labor starts untaxed), US dates, US trade wording (electrician, electrical panel, grounding, ZIP code), your state license printed on every quote, invoice and certificate, and US ways to pay (card, cash, check, Zelle, Venmo, PayPal, ACH, Apple Pay / Google Pay). United Kingdom switches to pounds, VAT, UK dates, British spelling (labour, cheque, colour, licence), engineer / consumer unit / earthing / postcode, the NICEIC / NAPIT / ELECSA scheme, CIS, appliance testing and the landlord EICR intervals. Ticking the region moves every default you have not changed yourself; nothing already recorded is ever altered.

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

== Changelog ==

= 1.23.3 =
* The website shortcode [teg-electric-request] is now [teg-electric-book] (ask for a job). The old name no longer works.

= 1.23.2 =
* 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 invoice still owes (after a part payment, say) is now refused, with the amount still owed. It used to be applied.
* Payments from the phone app that you confirm (Zelle, Venmo, PayPal) no longer get stuck if the confirm is interrupted. The shop works out whether the payment was recorded, and if it cannot tell, it shows two "I checked" buttons on the invoice so you decide.
* A customer import that stopped half-way no longer blocks Undo for ever, and two Undo clicks at once can no longer clash.
* A late delivery report from the text-message provider no longer changes a text already marked delivered, and a held text can no longer be sent twice.

= 1.23.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.23.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 quote or invoice opened on the phone always shows exactly what your customer gets, in the shop language.
* An invoice raised from a finished job now writes its lines (such as the call-out charge) and its note in the shop language, whoever clicks the button.
* Help Center and menu refresh.

= 1.22.0 =
* New: a Language screen in Settings. Each staff member can choose their own language for the screens they use (Users > Profile > My language in the shop).
* The shop also has a language of its own for everything your customers receive - quotes, invoices, certificates, receipts, reminders, texts and e-mails - so what a customer gets no longer depends on who clicked the button. US permit and inspection forms stay in English.
* Language packs (Spanish first) arrive later and need the Pro edition. With no pack installed everything stays in English, exactly as before.
* Changing a setting in another language no longer saves the standard wording of your e-mails, reminders and texts in that language; text you typed yourself is kept as you wrote it.
* Help: a Language section in the manual and a new question in the FAQ.

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

= 1.21.2 =
* New: Compliance (TEG-ELECTRIC > Setup > Licenses & equipment) - a register of the licenses, insurance and bonds the business and its electricians hold: contractor license, master and journeyman tradesman licenses, general liability and workers' compensation insurance, contractor / permit bond, 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.
* Equipment & calibration: test meters, insulation resistance testers and anything else that is calibrated, with each calibration and its certificate; a reading out of tolerance flags the instrument.
* 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 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.21.1 =
* Payments: the currency symbol always matches the currency (a US shop never shows £).
* The app payments list shows the date your region's way.

= 1.21.0 =
* Dates now follow your region: a US shop shows 09/28/2026 and 2:30 pm, a UK shop 28/09/2026 and 14:30, on every screen, print, e-mail, the customer's online copy and TEG Companion. Leave the date and time format blank in Settings > Business to use your region's, or type your own. WordPress's own date setting no longer changes what the shop shows.
* An invoice, quote or certificate already issued keeps the date format it went out with.
* The Schedule's week heading reads "Mon Sep 28" in a US shop and "Mon 28 Sep" in a UK shop; booked times use your region's time format.
* TEG Companion is told your date format, so the app writes dates the same way as the shop.
* Report cards in TEG Companion and the Customer notes panel write dates your region's way.
* The TEG Rover dispatch and route screens, the map and the Off-site backup panel show dates and times your region's way.
* Help: links to a sub-heading in the manual now land on it.
* The Hourly labor rate help no longer mentions urgency where there are no urgency rates.

= 1.20.0 =
* Invoices and quotes have one labor line: type the hours and it reads "2 hrs @ $80.00 /hr"; every other line reads "1 x $25.00". "+ Labor hour" adds an hour to it. The rate comes from the job: the engineer's own rate, the urgent rate for a high-priority job and the emergency rate for an emergency (no emergency rate set: the normal rate plus your emergency uplift %).
* New on Settings > Money: Labor line (Offered / Off), Hourly labor rate, Urgent and Emergency labor rates, Labor lines (Below / Above the parts) and Is labor taxable? (Yes / No). They replace "Labor rate an hour" and "Tax labor"; your saved rate and tax choice carry over.
* Is labor taxable? No now means labor is never taxed and has no Taxable box (before, it only set how a new labor line started). It applies to every draft invoice and quote saved from now on, including invoices made from a job; an invoice or quote that has gone out keeps the tax it went out with.
* Labor goes below the parts (or above them, your choice) in the editor, on the printed invoice and quote, on the customer's online copy and in TEG Companion. Your part picker and a quote's Optional box are still on every line.
* TEG Companion can now edit an invoice or quote's lines, with the same labor line and rules (app 1.49.0).
* Built on the shared invoice core 1.1.0 (WINDOCTOR feat/invoicecore). No database change: labor is still stored as before, so CIS, promotions, stamps and stock work as they did.

= 1.19.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.19.0 =
* Automatic texts through your own Vonage account (TEG-ELECTRIC > Text messages), each OFF until you tick it: the appointment reminder the day before a booked job, "On the way" (the job's On the way button, TEG Companion, or TEG Rover's "On the way"), the quotation link when you mark a quotation sent, and the invoice link - with a "Pay online" line while it owes money - when you issue an invoice. The wording follows your e-mail templates and uses the same tokens; the e-mails themselves are unchanged.
* Texts go only to customers marked "May be texted" (a new box on the customer form; James Rockford in the sample data). STOP and START are answered and kept in a consent ledger (a STOP unticks the box), nothing goes in quiet hours (21:00-08:00 by default - it waits), every text in and out is in the log, and a reply lands on the customer's next open job. Test mode is on until you switch it off.
* Overdue invoice chasing and overdue reminder e-mails are switched off for good (owner rule); their history is kept. The Reminders list no longer raises "Invoice overdue" rows and never sends one (rows raised before stay as history; any still pending were canceled with a note). The "Send a reminder" button and its e-mail are gone from Invoices; the list is now called Overdue and only shows who owes what, with the date of any reminder sent before. No review requests either.
* Built on the shared texting core sms-core 1.1.0 (WINDOCTOR feat/auto-texts). Database 1.15.0: customers.sms_ok and the texting log and consent tables (added, nothing removed).

= 1.18.1 =
* TEG Back Office: its staff list is now your engineers who have a WordPress login (active ones, by the name on their engineer record), then everyone else with a TEG-ELECTRIC role, then the administrators - each person once. The two-factor list uses the same people.
* Shared cores brought up to date: Help Center 1.1.2, "Get my license" 1.0.1 (a code that would switch off a product the current one carries is never installed over it).

= 1.18.0 =
* Payments now run on the shared TEG payments module: card payments online through your own Square, Stripe or PayPal account on the customer's invoice, Square Terminal at the counter (Send to Square Terminal on the invoice), a Refund form on every payment (back through the gateway, or by hand under its own method, never more than was paid), signed and once-only webhooks, the payments CSV, and pay-by-QR codes under Ways to pay.
* Nothing to set up again: the same Settings > Payments keys and the same webhook addresses (tel/v1/pay/...), so Square, PayPal and Stripe keep working. Every payment already recorded stays as it was. A key kept in wp-config.php is copied into Settings once (you may then remove it from wp-config.php).
* TEG Companion: Take payment on an issued invoice - a Square pay link, the counter's Terminal or the Square app; Zelle, Venmo and PayPal from the phone wait for the office to confirm them.
* The CIS deduction is never charged online and can never be refunded. A US bank transfer (wire) is still recorded at the office as before.
* Licence check: TEG-MARKETER and the Back Office bank feed add-on.

= 1.17.12 =
* The Help page no longer breaks the WordPress scripts on it (media library, admin bar menus): a manual section id clashed with a JavaScript name. Fixed a broken "Getting started" link in the FAQ.

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

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

= 1.17.9 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.
* Help has a new "Set up your shop" chapter: a step-by-step checklist from installing the plugin to going live, plus a few setup questions in the FAQ.

= 1.17.8 =
* 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.
* Field work now sits after Sales & money in the menu, like the other TEG shops.

= 1.17.7 =
* The sample quotes that were accepted now show the job they turned into, instead of a dash in the Job column.

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

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

= 1.17.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.17.3 =
* Money in another currency is written with its own symbol on the TEG Rover cards and the coupon / promo screens.

= 1.17.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.17.1 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* Coupon and promo-sale reports count one currency at a time: money on bills in another currency is listed apart instead of being added in.

= 1.17.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.
* 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.16.0 =
* Every customer now has one Customer notes box, on the desktop and in the Companion app: the general notes first, then the notes from their jobs, quotes and invoices, with who wrote each one and which came from an engineer.
* The general notes are the customer's Notes field and, for each of their sites, its hazards (in red), access notes and notes. The notes from records are the notes on the job timelines, the jobs' risk notes, the quotes' office notes and the notes printed on their invoices, each saying which job, quote or invoice it came from.
* Add a note straight on the customer's screen, or from the Companion app. A note written on a customer in the app no longer gets refused; it goes in the customer's notes, and the Notes field you type yourself is left alone.
* On the phone a job also shows its customer's general notes, so the hazards and the key-safe code are on the job screen.

= 1.15.1 =
* Report cards on your phone now open the matching report on the computer: the money cards open the Money report, quote times the Quotes report, job turnaround the Jobs report, margin and stock turn the Parts report, overdue invoices the chasing list, money due in the invoices, jobs waiting on parts the list of those jobs, parts that have not moved the stock list, and busiest hours the diary.
* Card names that fit an electrical contractor: job turnaround now counts from booking, not check-in, and the slow-stock cards talk about parts used on jobs, not items sold ("Parts not moving").
* 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".

= 1.15.0 =
* Report cards on your phone: in the Companion app's Reports tab you now pick which cards you want to see, and they are laid out in sections. Each person picks their own.
* New Reports cards page on the computer (in the shop menu, under Sales & money): the same cards on one page. Compare with the last period, the same time last year or dates you choose, set goals for your numbers, and download the figures as a CSV file or print them.
* New cards for an electrical contractor: busiest hours in the diary, repeat customers, how long quotes take to be accepted, overdue invoices and quotes waiting for an answer, takings by payment method, today so far, money due in over the next 30 days, discounts given, refunds, credit notes and voided invoices, lost customers, gross margin on parts, job turnaround, jobs waiting on parts, parts that have not moved, and how fast your stock turns over.
* Lost customers: you choose after how many days a regular counts as lost (90 days unless you change it).
* Optional monthly summary e-mail with your chosen cards. It is off until you save its settings.
* Turning the plugin off now also stops its scheduled e-mails and daily jobs. Removing the plugin also removes the report settings and goals.

= 1.14.0 =
* TEG Rover and TEG Companion are now included. The Rover phone app for your engineers is switched off until you turn it on; when you do, pair phones from the Phones page. Companion lets you run the shop from your own phone.
* Errands: your engineers can now be sent on errands as well as service calls - a parts run to the supplier, a trip to the bank - with spending recorded and favourite places saved so you pick them from a list.
* Import your own lists: a new CSV importer brings in customers, sites and parts from a spreadsheet. It does a test run first so you see what would happen before anything is saved, and an import can be undone afterwards.
* Easier first start: the one-click setup page and the sample data are better. Sample data can be added on top of what you have, looks like a real busy shop, and is removed cleanly when you no longer want it.
* Report cards on the Companion phone app: more at-a-glance reports for the owner, such as busiest hours and takings by payment method.

= 1.13.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.12.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.12.0 =
* Gateway refunds (PayPal, Stripe, Square) reach the invoice through the payment they came from.
* Deleting a part line, or the whole job, puts the parts back on the van they came off.
* 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.

= 1.11.0 =
* TEG Companion: the store chooses what the phone's home screen shows (owner 2026-10-28: too cluttered). The TEG Rover pairing page (where Companion phones are paired) 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.10.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.10.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.10.1 =
* Faster TEG Rover phones. The call board the phone keeps refreshing is now answered by a lightweight entry that does not load the rest of WordPress (other plugins, the theme). The same sign-in check runs - the phone's signed request, its key, its engineer - and the answer is exactly the one the normal way gives. Anything that changes a record (claiming a call, arriving, completing, photos, check-ins) still goes the normal way. On by default; Settings > Data & updates > "Fast phone reads" turns it off. Whenever it is not sure (license due a check, a key whose engineer has left, a site not in English, a security plugin in the way) the phone simply asks the normal way.
* The invoice list and the diary sort from new indexes on big shops instead of re-sorting every page. The indexes are checked now and then and re-made if one is ever missing.

= 1.10.0 =
* Companion phone app: pair TEG Companion from Field work > Rover phones (QR or code) and work jobs, customers and sites, notes, photos, the customer's signature and payments taken from your phone; invoices, quotes and certificates are read-only there, and the phone can do only what its person can do here.
* Help Center: a full manual (every screen and every setting, with a first-job tutorial), a searchable FAQ, and a ? button on every screen. It replaces the old Help page; Help is the last row of the TEG-ELECTRIC menu.
* Gift Coupons and Sales (Sales & money): coupon codes that take money off an invoice before tax (and before CIS) - money off, percent off or one item free, on the whole invoice, parts or labor, or one part - with minimum spend, dates, use limits, campaigns, batches, a printable coupon and a campaign report; and sales that lower the price of parts by themselves while they run, with a badge on the line and "You saved" on the invoice. An issued invoice is worked out again with the tax and CIS rates it was issued at. Pay by Zelle: a line with your Zelle address and the invoice number for the memo on every invoice that still owes money - on the invoice screen, the printed invoice and the customer's invoice page, and in the Ways to pay of the invoice e-mail the business already sends (no new e-mails). Incoming payments (Sales & money): Zelle payments read from the bank's alert e-mails and posted to the business (POST /wp-json/tel/v1/payments/incoming with the X-TEL-Key header - the counter's own key or the API key) are recorded on the invoice by themselves when the amount and the invoice number 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.
* Backups (Settings > Data & updates): back up everything this plugin holds to a private folder on this server - written table by table, with a protected, unguessable folder name - download it, upload it again, and restore it (a safety backup is taken first, and a backup from a newer version is refused). And every night at the time you set (default 02:30) a backup is taken automatically and, if you choose, copied off-site - 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 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".

= 1.9.0 =
* US commercial work, behind one setting: Settings > Business > "We do commercial work" (US shops, off by default). Off, nothing below shows - no menu, card, reminder or help section.
* Emergency and exit lighting test log (NFPA 101, Life Safety Code 7.9.3): a fixture register per building (ID, location, emergency light / exit sign / combination / battery unit), the monthly 30-second and annual 90-minute tests with pass / fail, note, tester and date, due and overdue dates worked out for you, a failed fixture becomes a repair job in one click, reminders, a printable test log with signature line and license, and CSV export.
* Fire alarm forms based on NFPA 72, in our own words: a Record of Completion (system type, control unit, circuits, devices by type, monitoring, power and batteries, installer and license, sign-off) and an Inspection and Testing report (devices tested with pass / fail counts, battery and charger tests, deficiencies that become repair jobs, next inspection date and reminder). Numbered, printed with your state license.
* Dashboard cards for emergency lighting tests due / overdue / failed and open fire alarm deficiencies.
* US sample shop: a commercial customer with a seven-fixture register and a year of tests, and a fire alarm inspection with one open deficiency.
* An issued fire alarm record is stamped when it is issued (a US document, with the state license and the electrician's license as they stood that day) and always prints from that stamp. The test log CSV goes through the formula guard and, like every export of your own data, works while the license is paused.

= 1.8.0 =
* US certificates: the Electrical Inspection Report (findings graded Hazard / Needs repair / Recommended / OK - any Hazard or Needs repair makes it unsatisfactory, and a finding becomes a repair job in one click) and the Service / Installation Certificate. Same numbering, sign-off, customer link, print and reminders as before; the UK certificates are unchanged.
* Panel schedule on every US certificate: panel name and location, service size, voltage, main breaker, and per circuit the position, breaker amps and poles, wire AWG (with aluminum), GFCI / AFCI / dual-function and a pass / fail test. Printed on the document (print or save as PDF) and exported as CSV.
* Permits & inspections on jobs: permit number, inspecting authority (AHJ), permit and inspection dates, result (pending / pass / fail / partial), inspector and notes. Printed on the job's certificate; internal reminders for the inspection day and for a re-inspection after a fail; a dashboard card for inspections due and failed.
* The state license and each electrician's own license print on every US certificate.
* US sample shop: an inspection report on a Federal Pacific panel, a panel-upgrade service certificate, two permits.
* Optional re-inspection reminder for US documents (Settings > Certificates, months; off by default).
* Fix: a remedial job raised from a C1 (or a Hazard) is now an Emergency - it asked for a priority that did not exist and fell back to Normal.
* An issued invoice or quote never changes. Each is stamped, when it stops being a draft, with the region, currency, tax label and rate and (invoices) CIS it was issued under; a payment, refund, credit or card payment afterwards only moves what is paid and the status. Invoices and quotes issued before the upgrade are stamped with the settings in force BEFORE the region was set, so an old UK invoice paid after the shop became US keeps its VAT and CIS.
* Old documents print as they were issued: their own currency, tax label, CIS rate and wording; a UK certificate (EICR, EIC, minor works...) keeps its NICEIC / NAPIT scheme line, and a migrated UK engineer's scheme is never printed as a state license.
* The certificates dashboard counts Hazards / repairs and still shows open C1 / C2 from older reports; the outstanding list takes both.
* CSV exports: the CIS column is dropped for a US shop only while every row's CIS is zero, and never from the bookkeeping exports; a text cell starting = + - @ is quoted so a spreadsheet cannot run it as a formula.
* Payment methods an existing invoice offered stay on it after a region change.
* A new invoice starts with a labor line taxed the way the region taxes labor, like a quote.
* US site supply types: 120/240 V split-phase, 120/208 V and 277/480 V three-phase wye, 240 V high-leg delta, other (the UK TN-S / TN-C-S / TT stay for UK shops; a stored one still shows).
* The panel schedule CSV no longer needs a licence; a passed permit inspection closes its reminder; long notes are cut by character.
* Clearer Region wording: saving a new region moves only the defaults you have not changed, Apply defaults also switches CIS off, and issued documents never change.

= 1.7.0 =
* Region setting (US/UK): US dollars, sales tax, US trade wording (electrician, panel, grounding, ZIP), state license on documents; UK-only features hidden for US shops.
* One tick switches everything: currency, date format, tax label and rate, whether labor is taxed, the payment methods offered (US: Zelle, Venmo, ACH, Apple/Google Pay; UK: cheque, bank transfer; PayPal everywhere), British spelling for UK shops (labour, cheque, colour, licence) and the requirements (state license, or scheme + CIS + PAT + EICR intervals). A value you changed yourself is kept; Apply defaults resets them on request.
* CIS, the VAT number (shown as Tax ID / EIN), appliance testing and the landlord EICR intervals are hidden for US shops - hidden, not deleted. CSV exports drop the CIS column for US shops.
* US sample shop: Virginia licenses, panels and breakers, no NICEIC or PME.
* Nothing needs wp-config.php any more: payment keys are kept in the settings, and TEG Rover photos live in a protected, randomly named folder the plugin makes by itself.

= 1.6.0 =
* The admin menu is grouped: Dashboard first, then OFFICE (customers, diary, quotes, reminders, sites), FIELD WORK (appliance testing, certificates, engineers, Rover phones, TEG Rover), PARTS & STOCK (parts & van stock), SALES & MONEY (invoices, reports), TOOLS (help) and SETUP (settings, two-factor sign-in), 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. (This release also carries the shared Rover module 1.2.0 already merged onto main - routes stay out of this shop.)

= 1.5.1 =
* Pairing QR codes now render for real (long) pairing codes. The QR on the Rover phones screen was missing for a real site's pairing code (about 230-260 characters; the QR encoder stopped at 213) - scanning works again, and pasting the code keeps working as before.

= 1.5.0 =
* TEG Rover: technicians' phones for house calls. The office side of the TEG Rover phone app: calls for your engineers' phones - service calls, estimate visits and permit inspections - made from a job in the diary, with a priority, a time window, a checklist and what must be done before the visit can be finished (the customer's signature, photos). Assign an engineer or put a call on the open board for the first engineer to claim it.
* Every step on the phone goes into the job's own timeline; a service call moves the job to In progress when the engineer arrives and to Complete when it is finished, with the customer's signed name. An estimate visit becomes a draft quote with one click.
* A live map of the engineers on shift and the calls, each engineer's route for a day, the closest engineer to a call, and a "probably on site" hint.
* Pair a phone by QR code (TEG-ELECTRIC > Rover phones); each phone has its own key you can revoke at any time. GPS positions are sent only while an engineer is on shift, kept 30 days by default, and included in WordPress's personal data export and erase.
* Money taken at the door is recorded and waits for the office to confirm it, then goes on the job's invoice.
* The live map uses OpenStreetMap out of the box. With a paid license, "Get a map token from TEG" (TEG Rover > Templates and settings) switches it to Mapbox with a token locked to your site - no Mapbox account needed - or paste your own Mapbox token.
* Nothing you already have changes: the update only adds new tables.

= 1.4.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.4.0 =
* "What's new" after an update: the first time you open the shop after an update, a card shows what changed - once. After that a small "What's new" button on the dashboard opens the same notes again, any time.

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

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

= 1.3.0 =
* Licenses are now tied to your site. When you enter a paid code it checks in with the license server once and binds to this site's address; after that it keeps working normally even if the server is unreachable. Your data is never locked away - everything stays readable and printable at all times.
* A brand-new install (or a copy placed on a different web address) that has a paid code but has never checked in stays in read-only mode for the paid features until it can reach the license server once. The License tab says so and "Re-check with license server" completes it. Sites that were already licensed and running are carried over automatically on update - nothing to do.
* The trial is unchanged: it still works fully offline for 30 days from the first run.
* The value features now pause together when a license is not active: the business/CSV exports (jobs, invoices, quotes, customers, engineers, appliances, certificates, parts, reminders, sites, accounts and reports) and taking a customer payment (Stripe, Square, PayPal). Reading, printing and exporting your own data for portability are always allowed, and a payment already in flight is never lost (capture and webhooks are not gated).
* The License tab shows this site's bound address and whether it is validated, and warns when a code is in use on more sites than it was sold for.

= 1.2.0 =
* 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 customers 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 customer should not use. The printed invoice, the customer's page, the invoice e-mail and the overdue reminder 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 business's own ones (bank transfer, other) under "Other". Payments recorded as "Cheque" before now show as Check; nothing stored is rewritten.
* Every payment and credit note now records who took it, when, and a staff note. The invoice screen shows all three; the printed invoice and the customer'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.

= 1.1.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.1.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
* A sample contractor to load and explore: customers with many sites, open C1 and C2 findings, an engineer whose card is about to lapse, and a week of jobs
* 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.1.0 =
* The appliance testing screen is on the menu; it had been built but could not be reached
* Accounting export for Xero, QuickBooks Online and Sage, plus payments received, with the CIS deduction always in its own column
* Card payments on an invoice through Square, PayPal or Stripe, asking for the balance less the CIS deduction
* 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

= 1.0.0 =
* First release.
* Customers and sites, so a landlord with forty flats is one customer and forty properties
* A week board by engineer, an unassigned pile, and a job sheet with labor in minutes and parts from the van
* Certificates as structured records: circuit schedules, readings kept as written, observations with their codes
* Outstanding C1 and C2 findings on the front page, because that is the number a contractor is exposed by
* Issuing refused unless the person signing is qualified, insured and permitted to certify
* Renewal dates computed per certificate kind and property type, and chased automatically
