=== TEG-METALSSHOP ===
Contributors: theeldestgeek
Tags: precious metals, gold, silver, bullion, pawnshop, pawn, jewelry, buy gold, point of sale
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.35.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The precious-metals dealer and pawnshop counter for WordPress: spot prices, melt-value pricing, buy tickets with ID compliance, inventory, counter sales, pawn loans, layaway, cash drawer, reports.

== Description ==

TEG-METALSSHOP turns a WordPress site into the counter and the books of a precious-metals dealer and pawnshop:

* Live spot prices (gold-api.com free feed, The Eldest Geek METALS feed, or manual) with history, a melt-value calculator and a buy-price matrix per purity and unit.
* Buy tickets: the seller's government ID, weighed and tested pieces, melt at the spot of the moment, the offer at your payout %, a signed declaration, the payout, then the goods on police hold in inventory.
* Inventory of coins, bars, rounds, jewelry, scrap, numismatics, gems and merchandise, valued at melt as spot moves, priced at spot + premium or fixed, with Code 128 labels.
* Counter sales with scan-to-add, tax by line, cash / card / check payments, refunds and printed receipts; layaway with deposit, hold and cancellation fee.
* Pawn loans: interest per period, fees, term and grace, renewals, principal paydown, redemption, forfeiture into stock at cost, printed pawn tickets, e-mail reminders (Pro).
* Cash drawer sessions with Z reports.
* Jewelry: gross, stone and metal weights (melt on the metal), stone disclosure (natural / lab-created / simulant), watches with brand and serial, engravings and marks in the police report, melt-or-resell with refining-lot gain or loss, written appraisals / insurance certificates, and jewelry repair jobs with claim tickets and the labor-tax rule your state uses.
* TEG Jeweler: the jewelry-store edition of the same plugin (no pawn loans): ring tags for Zebra / DYMO / Brother, special orders, memo goods, a gift receipt, customer occasions and wish lists.
* Reports: sales, purchases by metal, pawn book, inventory valuation, tax, cash flow, and the transaction report for law enforcement (CSV or e-mail).
* A public page with the ticker, the calculator and a ticket lookup; a REST API (Pro).
* Driver's-license scanning (any USB 2D scanner in keyboard-wedge mode), a coin catalog with grading and gem fields, refining lots with assay settlement, and a full-screen price board for the shop window.
* Two-way texting: inbound messages land in an Inbox grouped by customer, with a reply box; gift cards, a store-credit ledger with a buy-out bonus, loyalty points and sales commission.
* Takes card payments online through your own Square, Stripe or PayPal account, and Square Terminal at the counter: customers pay receipts and layaways, and renew, pay down or pay off pawn loans, from their account page or a pay link; each payment is recorded once by the gateway's signed webhook. TEG Companion takes payments on a receipt too.
* A WooCommerce shop window, QuickBooks Online / Xero sync, PrintNode thermal printing with the drawer kick, CSV importers for customers and inventory, and a first-run setup wizard.

Licensed like the Doctor family: every install carries a free 30-day Pro trial that starts the first time the plugin runs. On day 31 creating and editing pause (everything stays readable) until a license is active: fetch a personal trial from the license panel or enter a purchased code from theeldestgeek.com - Standard or Pro, annual or lifetime, single-site or 5-site pack.

== Installation ==

1. Upload the zip under Plugins > Add New > Upload and activate.
2. TEG-METALSSHOP > Settings: store details, pricing and spot feed, pawn terms, compliance.
3. Spot Prices > Refresh now, then Settings > Data & updates > Load sample data to look around, or add your stock.
4. The public prices page is created at /teg-metalsshop/ (shortcodes [teg-metalsshop-spot], [teg-metalsshop-calculator], [teg-metalsshop-lookup]).
   Every shortcode, with its options, is listed in Help Center > Shortcodes: [teg-metalsshop-account], [teg-metalsshop-quote], [teg-metalsshop-book] and [teg-metalsshop-firearms-notice] too.

== Companion app ==

TEG Companion runs the shop from a phone. Open TEG-METALSSHOP > Setup > Device pairing, add a phone for a person, and scan the QR code (or type the 9-digit short code and the site address) in the app. The same page pairs TEG Rover phones for mobile buying; one phone can hold both. The phone does exactly what that person may do on the website: sellers, buy tickets, the payout (through the same age and ID check as the Buy screen), notes, photos and signatures (kept in a private folder, never the media library), payments on invoices, and the day's total. The ID number and the ID photo are never sent to the phone, a police hold cannot be released early from it, and notes on a ticket can be added but never changed or deleted. Nothing is ever e-mailed or texted to a customer by the app.

== Changelog ==

= 1.35.2 =
* Help: the Help Center now has one Shortcodes section listing every shortcode this plugin adds, with what each does and an example, and a question about it in the FAQ. No other change.

= 1.35.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.35.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.
* The note and the lines the TEG Metals app puts on an invoice, purchase order or pawn ticket are written in the shop language, whoever is signed in on the app.
* Appointment e-mails to your customers (confirmed, canceled, reminder) and the "Left to redeem" line on an e-mailed loan payment receipt are written in the shop language, whoever pressed the button.
* The sanctions-list check writes its notes in a customer's change history in English, like the rest of that check, whoever's screen started it.
* Help Center and menu refresh.

= 1.34.0 =
* Language packs (Spanish first) will arrive later and need the Pro edition. A running trial counts as Pro. Until a pack is installed, everything stays in English as before (apart from the small Spanish built into the plugin for receipts, tickets and the customer page). A pack you already have keeps working without Pro; it just stops getting updates until Pro is back. Settings > Language links to Settings > License when a pack needs Pro.
* Payment receipts, pay pages, pay links and saved-card notices that go to your customers are written in the shop language, not in the language of whoever clicked. Your counter staff still see their own language on their screens. No amounts or payment steps changed.
* Repair notices (estimate ready, ready for pickup) are written in the shop language too, whoever moved the job on.
* The firearms notice, the appraisal disclaimer and the repair notice wording are no longer saved in the language of whoever saves a Settings tab: until you change them they follow the shop language. Wording you typed yourself, and anything already saved, stays exactly as it is.
* The Help Center manual and FAQ say that language packs need Pro.

= 1.33.0 =
* Finding a customer forgives typos on the website screens: when you type a name and nothing matches exactly, you now get the closest names instead - a letter or two off, a missing accent or apostrophe, or first and last name the other way round. It works on the Customers list and in the customer box on buy tickets, sales, pawn loans and the other screens. The Customers list says "No exact match for ... - close matches:", the customer box starts each of those names with "Close match:", and after you pick one the form says "Close match - check the ID". Nothing is picked for you. Check the ID before you use a close match for a buy or a loan.
* Only names and company names are matched this way. Phone numbers, e-mail addresses, ID numbers, ticket and loan numbers, the "banned only" list, the sanctions check, Form 8300, the export and the reports still match exactly, as before.
* The Help Center manual and FAQ explain the new search.

= 1.32.0 =
* Other languages: the shop can now run in a language other than English. Pick it under Settings > Language (or leave it on "Same as WordPress"). Each staff member can also choose their own language for the screens under Users > Profile. What your customers get - receipts, tickets, statements and the e-mails the shop sends - follows the shop's language. If you keep your own translation files, they are used first.
* This version adds the setting and the screens. Spanish and other language packs arrive later as automatic downloads, so nothing changes for a shop that leaves the setting alone.
* The US-only screens (Form 8300 and the sanctions check) always stay in English.

= 1.31.0 =
* Pawn desk: loans can forfeit automatically after the due date and grace period (off until you switch it on, and by default only after an overdue notice was recorded and your waiting days have passed - set the days to match your state's rules). Give a customer an extension (more days before the loan can forfeit, with an optional fee; interest keeps running). Replace a lost ticket with an ID check and an optional fee. Print "due soon", "overdue" and "final notice" letters for a window envelope, one at a time or in a batch; each letter is recorded on the loan.
* Moving from Bravo, PawnMaster or another system: bring over your OPEN pawn loans and OPEN layaways from a spreadsheet file (Setup > Move loans & layaways). Match the columns, do a test run, compare the totals with your old system, then import. Loans keep their old ticket numbers, dates and terms. They come in as opening balances: nothing goes into today's cash drawer or reports, nothing is sent to the police again and no customer is e-mailed or texted. An import can be undone.
* Cash drawer: count the float and the closing cash by note and coin (the plain total still works), shown on the Z report, which now has a print page. New: a safe count.
* Manager approval (off until you switch it on): when a clerk is not allowed to refund, void, delete, forfeit, use the drawer or give store credit, a manager can type their own PIN to approve that one action. Every approval is in Change History.
* Repairs: tell the customer when the estimate is ready and when the repair is ready for pickup, by e-mail and by text (each off until you switch it on), with a Send now button. Assign a repair to a staff member. Parts and labor lines add up to the estimate.
* US sanctions list check (off until you switch it on): customers are compared with the US Treasury's list on your own server - no name is sent anywhere. A possible match holds the transaction until a manager has looked at it.
* Form 8300 helper (off until you switch it on): adds up the cash you receive from each customer over 12 months, tells you when a Form 8300 may be due and by when, and prints a worksheet in the form's order to key in. It does not file for you.
* Buy limits: the amounts and counts that flag a transaction for review can now be set (Settings > Buy limits & checks). Nothing changes until you change them.
* Up to 8 photos per item, in the order you choose. Pictures of pieces that are on hold or pledged are never public.
* Google Shopping: a product feed of the pieces you choose to list online, with a public page for each piece; prices follow spot.
* eBay (off until you connect your own eBay developer account): list a piece on eBay, the listing ends as soon as the piece is sold, reserved or held anywhere, and a paid eBay order becomes a sale. New in this version and not yet proven on a live eBay account: try it in eBay's sandbox mode first.
* Web orders through WooCommerce now keep the price the customer paid.
* The Help Center manual and FAQ cover all of the above.

= 1.30.4 =
* New: a full Help Center - a step-by-step manual and a searchable FAQ, right inside your shop (Help in the menu).

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

= 1.30.2 =
* New: Licenses & equipment (under COMPLIANCE in the menu) - a register of the precious metals dealer permit, the dealer surety bond or letter of credit, the pawnbroker license, the business license, the sales tax certificate and the FFL (from Settings > Firearms), or anything else, with the number, issuer, dates, bond amount and the scanned certificate. Renewing keeps the old one as history; each shows Current, Expiring (60 days), Expired or Missing.
* Equipment & calibration: legal-for-trade scales, test weights and the XRF analyzer, with inspections, calibrations and daily test-weight checks. A buy ticket records the scale it was weighed on, and each scale lists the tickets weighed since it was last known good.
* Enforcement, off until you switch it on: no payout while the dealer permit or bond is missing or expired (also from the phones), no buying on an overdue, failed or flagged scale, no new pawn loan without the pawnbroker license.
* Reminder e-mails 60, 30 and 7 days before anything expires or falls due and when overdue; a dashboard box; 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 the private folder (never the media library) with their hidden metadata removed, every view is logged, and the register and its scans are in every export and backup. Deleting the plugin keeps the register unless you choose otherwise. The presets are examples (Virginia first), not legal advice.
* Help: a new section, Licenses, permits and scales.

= 1.30.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.30.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).

= 1.29.4 =
* TEG Companion: a buy ticket's screen no longer lists other customers' receipts and quotes (each offered Take payment).

= 1.29.3 =
* 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.29.2 =
* Demo sites: the demo customer's old name is replaced in every stored copy - buy tickets, loans, notes, quotes, the activity, mail and text logs and the rest - not only on the customer record (an estate buy ticket still showed it). A real shop is never touched.
* TEG Jeweler: TEG Rover is not part of the jeweler trade, so it now starts switched off there and its menu is hidden; Device pairing (for TEG Companion phones) stays and has the switch. A jewelry store that already used TEG Rover keeps it on. Metals dealers and pawnshops are unchanged.
* Repairs: the Jeweler column (and the job, its print and the CSV, and an appointment's "seen by") shows the staff member assigned, or nothing - never a paired phone's login such as "Demo phone". Phone logins are no longer offered as staff anywhere (pickers, commission, TEG Back Office, TEG Companion).
* TEG Companion: a buy ticket's Total shows once, in the money section (it was listed twice, the second time in lower case).

= 1.29.1 =
* TEG Back Office: the staff list it reads from the shop now follows the one rule every TEG shop shares - Counter Clerks first, then the other managers, then the administrators, each person once. The same people as before; only the order changed (the commission rates, two-factor and sessions screens and TEG Companion use the same list). Back Office keeps reading each clerk's commission from Reports > Commission.
* "Get my license" will not swap a license for one that drops a product bit (licence-claim module 1.0.1).
* Shared cores checked against the latest TEG release (TEG Companion 2.13.0, TEG Rover 1.8.0, payments 1.2.0): already current.

= 1.29.0 =
* Takes card payments online through your own Square, Stripe or PayPal account, and Square Terminal at the counter (the shared TEG payments module replaces the shop's own Stripe-only engine). Receipts and layaways are paid from the account page, the customer's receipt and the reminder e-mail; pawn loans are renewed, paid down or paid off online, the amount always worked out from the loan.
* Already set up with Stripe? Nothing changes: the old webhook address, pay links already sent and your keys keep working, and Stripe stays on. Every payment already recorded stays exactly as it was.
* Card payments taken online can be refunded through their gateway from the sale screen; Sales has a Payments CSV; money a gateway took that a receipt or loan cannot take is kept aside, with an e-mail and a notice for the administrators.
* TEG Companion: Take payment on a receipt (Square link, Square Terminal, the Square app; Zelle / Venmo / PayPal wait for the office to confirm). The home screen sends the Staff button.
* Buy ticket payouts, loans advanced and consignment settlements are unchanged. A bank transfer / wire is still recorded by hand at the counter.
* Licence check knows TEG-MARKETER and the Back Office bank feed.

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

= 1.28.10 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.
* The E-mail, Help and Setup pages are registered under their menu names (E-mail delivery, Help & Tutorials, Setup wizard), and the help, the Settings page and the app invoices page point to Setup > Device pairing.
* TEG Companion: the home screen no longer offers a "New customer" button the app could not show.

= 1.28.9 =
* TEG Companion: the "New pawn loan" button on the pawn loans home now shows, and has its switch under Settings > Show on home screen. The shop named it differently from the app, so the app left it out. A home-screen choice the store saved before keeps working.
* A pawn item's serial number now shows in the loan's Collateral table, on the printed pawn ticket and on each loan line TEG Companion gets (it was saved but not shown unless the item was a watch).
* The Collateral table and the printed ticket show "-" in the Weight column for an item with no metal or no weight, instead of its quantity ("1").
* The shop's pages now warn the administrator when the WordPress time zone was never set, because loans, tickets and payments are then stamped and shown in UTC (a 2:11 pm loan in New York read 19:11). Set it under Settings > General > Timezone. The loan's ledger in the app now also carries each time with the site's time zone offset.

= 1.28.8 =
* With TEG Back Office active, its page in Setup is now called "Back Office". The shop's own Payroll page keeps the name "Payroll".

= 1.28.7 =
* 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", the setup page is "Setup wizard" and the E-mail page is "E-mail delivery", and Settings is the last row of Setup. The TEG Back Office add-on's page now sits in Setup as "Payroll" instead of under "More".
* Sales & money now sits after Metal & stock and Compliance in the menu, like the other TEG shops.
* The Total offer on a new buy ticket no longer ends up a cent off the offers shown: each line is rounded to cents before they are added.
* The starter coin list now imports with nothing skipped (the two UK "weigh the lot" rows are accepted), and it has a generic "Silver dollar, 90%" row for bulk junk silver dollars.
* The face-value note on a buy ticket line no longer runs into the "not a firearm" box.

= 1.28.6 =
* A new buy ticket now shows the offer for each line as you type (the Offer boxes stayed on "auto" and the total only counted offers you typed, until you saved the draft).
* The coin item form had two boxes both saving to the certificate number, and the empty gem one won, so a coin's cert number was lost. The gem certificate has its own box now; the coin's is kept.
* A coin or piece bought at a price above its melt (for example a PCGS MS65 Morgan bought for $180) now goes to inventory with that cost and a list price at or above it, not at melt plus the usual premium, which was below what you paid.
* The inventory list marks any item whose price is under its cost with "below cost".
* A 14K, 10K, 18K or 22K line no longer shifts by a cent after you save the ticket; the melt and the amount paid stay the same.
* On the item edit form each label now sits above its own field (they were showing after the previous field).
* The coin list is on the buy ticket too: pick a Morgan dollar, a Mercury dime and so on, or enter junk silver by face value.
* Developer note: the coin catalogue picker is on the inventory item form, not the buy ticket (corrected in the code notes).

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

= 1.28.4 =
* A purchase order sent from the TEG Metals app opens as a draft buy ticket that shows the right "Total offer" straight away (it showed $0.00 until a line was changed).
* The signature the customer drew in the TEG Metals app now shows in the draft buy ticket's signature box, and saving the draft keeps it.

= 1.28.3 =
* Weighted sterling: new Sterling flatware and Sterling knives (sterling handles) choices, with their sterling percentages in Settings > Pricing.
* Payroll has its own page address (tms-payroll). It used TEG RepairShop's, so with both plugins on one site RepairShop's Payroll page could not be opened. Old MetalsShop bookmarks still work.
* Developer tools: the shop-core lock check no longer reports the product name list as changed (no change for shops).

= 1.28.2 =
* Weighted sterling: new choices for multi-arm candelabra weighed whole (2-3 arm and 4+ arm).

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

= 1.28.0 =
* TEG Metals weighted sterling: candlesticks, candelabra bases, shakers and compotes come in with their gross weight and the estimated sterling, and the melt is priced on the sterling.

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

= 1.27.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.27.1 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.

= 1.27.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.
* Settings > Region shows what the region sets and what it asks of you. In the UK and the EU, investment gold stays untaxed while silver, platinum and palladium bullion carry VAT (Settings > Pricing & spot > Bullion that stays untaxed). The spot feeds are in US dollars; outside the US, enter your prices by hand.
* Buy tickets, receipts, layaways, pawn tickets and repair claim tickets keep the currency, tax and wording they were issued with - on screen, in print, on the customer's page and when paid online.
* 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.26.0 =
* The TEG Metals calculator app can now be paired with your MetalsShop (TEG-METALSSHOP menu > Setup > TEG Metals app > Show a pairing code). Invoices, purchase orders and pawn tickets made in the app at a customer's site are saved straight into MetalsShop: a purchase order becomes a draft buy ticket, an invoice an unpaid sale, a pawn ticket a pawn loan.
* The customer is found by e-mail or phone, or added if they are new. The document gets this shop's own number, which the app prints on the PDF. Sending the same document again never makes a second one, and nothing is e-mailed to the customer.
* A purchase order is only a draft: you pay it out here on the website, with the ID check and the hold as usual. A pawn ticket follows every rule of the Pawn Loans screen (a customer with no valid ID on file is refused, and the app keeps the PDF).
* The app's key is one of the phone keys on the Phones page. A person can have TEG Companion and the TEG Metals app paired at the same time; pairing or unpairing one never cuts off the other.

= 1.25.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 buy tickets, sales, pawn loans, repairs and appointments, with who wrote each one and which came from a buyer.
* The box is on the customer's screen, under Details. "Add a note" there (or in the app) keeps a note on the customer without changing the customer's own Notes field. A banned customer shows a red "Banned" line at the top.
* In the Companion app you can now add a note to a customer or to a sale, not only to a buy ticket. Photos and signatures still never go on a customer.
* The chain-of-custody notes added to a buy ticket in the app now also show on the ticket's screen on your computer.
* The customer's own Notes field can now be changed in the Companion app too, when you edit the customer. Older versions of the app keep working as before.

= 1.24.1 =
* Report cards on your phone now open the matching report on your computer: sales and tax cards open Reports > Sales or Tax collected, payments by method opens Cash flow, stock that has not sold opens Aged inventory, the follow-ups and cash flow cards open your layaways, money owed to customers opens Gift cards, and the repair cards open Repairs.
* Card names now fit a metals shop: "Overdue layaways" and "Layaway balances falling due" instead of invoices, "Quote requests waiting", "Repairs ready for pickup" instead of call-backs, "Repair turnaround" and "Repairs waiting for parts" instead of jobs, and stock that has not sold counts items in stock for over 90 days.
* Clearer dates on the cards: "October 1" for a single day and "Jan 5-10" for a short range.
* Fixed: refunding a sale and opening a layaway now work cleanly in every case. If a sale could not be created, a payment or refund meant for it could be recorded against a different sale; that can no longer happen.
* Fixed: shops updated from an older version now get the CSV import tables straight away during the update.

= 1.24.0 =
* New: report cards on your phone. In the TEG Companion app each person picks which cards they want to see, grouped into sections such as Money, Customers, Stock and items, and Staff, so everyone gets the numbers that matter to them.
* New: a Reports cards page in the shop menu on your computer. See every card for any period and compare it with the period before, the same time last year, or dates you choose. Set goals and watch your progress towards them, download the figures as a CSV file for your spreadsheet, or print the page.
* New cards for a metals shop: your buy-versus-sell spread and margin, the value of your bullion stock at today's spot price, and pawn loans coming due together with the interest and fees they have earned. Each card links straight to the matching report (Purchases, Inventory valuation, Pawn book).
* Also on the cards: sales by payment method, cash flow, stock that has not sold, discounts, refunds, repeat customers, customers to follow up, repairs waiting for parts and how long repairs take. They count the same sales as the Reports screen: void, cancelled and layaway sales are left out, and so are store credit and gift cards.
* New setting: "lost customers after N days". Choose how long a customer can go without coming back before the cards count them as lost.
* New: an optional monthly summary e-mail with last month's figures. It stays off until you set it up and save it.
* Turning the plugin off now also stops its scheduled e-mails, and removing the plugin removes the report goals and settings too.

= 1.23.0 =
* New: Import from CSV. Bring your customers and your stock over from a spreadsheet or your old program. Pick the file, match its columns to the shop's fields (the shop suggests a match for you), then do a Test run - it shows exactly what would be added or changed and saves nothing. When it looks right, import it. Changed your mind? Every import can be undone afterwards.
* New: errands for your staff's phones. Send someone to the bank, the post office, a supplier or a refiner with a list of what to get, an optional spending limit and how it is paid. They see it in the TEG Companion app, mark each item got, not available or substituted, and photograph the receipt; you follow it on the Rover board. Places you go often can be saved, and ready-made errands (bullion run, refiner drop-off, bank deposit, post office) get you started.
* TEG Companion and TEG Rover come with every copy of the plugin. Rover (the phones' job board and map) stays off until you switch it on; phones are paired on the Phones page.
* Report cards in TEG Companion: this month against last month, your average sale, and this year against last year, at a glance.
* Sample data: Settings > Data now loads two months of sample customers, stock with photos, tickets, sales, loans and repair jobs with one button - and removes exactly those records again with another. Your own records are never touched, and sample data cannot be loaded into a shop that already has real records.
* Upgrading is automatic: the new tables are added when the update installs; nothing you already have changes.

= 1.22.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.21.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.21.0 =
* One payment per Stripe Checkout Session (payments.gateway_ref locked unique).
* Stripe money that does not fit its receipt or loan is booked once as unapplied money for staff to place.
* New permission Issue gift cards and add store credit (tms_credit).
* A receipt keeps the tax exemption it was created with.
* Store credit and gift cards are refused on deposits, pickups, pawn payments and appraisal fees.
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed. DB 1.20.1.

= 1.20.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 (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: the shop module (New buy ticket, New customer, Open buy tickets, the tabs) and the metals module (New pawn loan, Open loans - with pawn loans on). Starter set: New buy ticket, New customer and New pawn loan on, every list and tab on. The option is a plain JSON string (tms_companion_home); app/hello is not a SHORTINIT fast read, so the fast path needs nothing. Shared Companion core 2.1.0 (generated; tools/test-companion-home.php, tools/test-companion-home-metals.php).

= 1.19.0 =
* TEG Companion: a pawnshop can open a pawn loan from the phone, as it writes buy tickets. The phone quotes the loan first - fees, interest, due date, forfeit date and the payoff at each period end, worked out by the same code the loan uses - shows the pawn ticket terms above the customer's signature, and saves through the same writer as Pawn loans > New pawn loan: jewelry with metal, karat and weight, watches with their serial, general merchandise with make, model and serial, item photos, the payout in cash from the drawer or by check or transfer.
* Every counter rule holds on the phone: pawn loans switched on (a dealer or jewelry store is refused), an in-date ID, the minimum age, not banned, the firearms rule, the collateral held as stock, the cash out of the drawer and the loan in the police report. The phone also asks for "ID checked", has open buy-limit flags acknowledged, refuses a cash payout while no drawer session is open, and a rate or fee other than the shop's needs the price permission. A loan sent twice from a phone that lost its connection is opened once.
* TEG Companion: renew, pay down and redeem a loan from the phone, through the same writer as the loan's Take payment form (the drawer, the ledger, the receipt e-mail only when asked).
* Nothing changes on the website's own pawn screens.

= 1.18.2 =
* Sample data ("Load sample data" and the nightly demo reset) now shows what 1.12 to 1.18 added, for a precious-metals dealer and a pawnshop alike. Nothing in it sends an e-mail, a text or a request to another server.
* Watches: four bought watches with brand, model, reference and serial - a two-tone Rolex Datejust with box and papers, an Omega Seamaster with neither, a 14K Hamilton railroad pocket watch (its movement weight deducted from the case) and a Seiko diver bought for parts. A pawnshop also holds a TAG Heuer as collateral.
* Stones: the jewelry in the case and several bought pieces carry a gross weight and a stone weight, so the metal weight and the melt are less than the gross; every piece says natural, lab-created, simulant or no stones, and two are left "unknown" the way an upgraded shop has them.
* Engravings and marks: "To M. love J. 1987" inside a wedding band, a presentation engraving in the pocket watch, makers' marks and worn karat stamps.
* Melt or resell: finished pieces are marked resell and priced, scrap is marked scrap; last month's scrap is in a settled refining lot (refiner, assay, wire payment, a gain over cost under Reports > Refining lots) and this month's is in an open lot filled by "Add every item marked scrap".
* Appraisals: two written appraisals - one engagement ring, and a customer's three-piece set - with stone details, replacement values, the appraiser and photos, each linked to its appraisal appointment and fee.
* Appointments: past and upcoming appraisals, estate visits, large buys and a pickup over two weeks either side of today; the upcoming estate visit has a draft TEG Rover call. The sample's appointments never get a reminder e-mail.
* Customers: every sample customer has first and last name parts; "Maria de la Cruz", "Prince" and "Bob and Carol Lee" are under Customers > "names to check", and "Earl Whitaker Jr." shows a suffix.
* Firearms: an estate buy with a sterling pistol-grip cake knife shows "Not a firearm - confirmed by" the staff member who checked it, now printed on the buy ticket screen for any such line. A line confirmed that way no longer raises the "A firearm may be in this lot" warning on the ticket.
* Police reporting: Settings > Compliance shows six days of delivery log (Generic CSV): sent, nothing to report, and one day that timed out and went through on the retry. It is only written while sending is switched off, and no upload is ever made.
* Demo reset: refining lot and appraisal numbers start again from LOT0001 and 1001 each night.
* Printed appraisal: the two-line title no longer overlaps itself.

= 1.18.1 =
* Counter sale: the quantity box accepts 1 again. It allowed only 0.01, 1.01, 2.01 and so on, so a browser refused the default quantity and the sale could not be saved. Fractional quantities still work.

= 1.18.0 =
* Updating from 1.11: a shop with no saved shop type and no pawn loans becomes a precious-metals dealer on upgrade (Pawn Loans is hidden). If you are a pawnshop, choose Pawnshop again under Settings > Store.
* Updating from 1.11: a buy, pawn or consignment line whose description mentions a gun now needs staff to confirm "not a firearm" (or the firearms setting). An older TEG Companion build that does not ask may be refused on such a line (HTTP 422 tms_firearm_confirm) - update the app.
* Updating from 1.11: a shop that had the daily police-report e-mail copy turned on may receive yesterday's copy once more right after the update.
* Phones paired under 1.11 move to the new key store on update; a key that could not be moved is written to the shop log and retried every hour until it is across, so the phone never needs pairing again.
* Versions 1.12.0 to 1.15.0 were built but never published on their own; everything they bring is in this release, together with TEG Jeweler. (1.16.0 and 1.17.0 are not part of it - they were never released.)
* TEG Jeweler: the jewelry-store edition of this plugin - the same plugin and updates, sold as a TEG-METALSSHOP licence. Choose the edition in the setup wizard (it locks once setup is done; an administrator can unlock it under Settings > Store). TEG Jeweler shows its own name in the menu, page headers, the setup wizard and the default receipt footer. Existing shops stay TEG-METALSSHOP and nothing changes for them.
* Shop type "Jewelry store": no pawn loans; estate buying stays fully regulated (the seller's ID, the police hold and the police report). The screens say "Estate buys" and "Purchase", and the dashboard shows today's sales, repairs due, special orders, layaways due, appraisals booked, memo goods due back and the ring tags waiting to print. Spot and melt are still there, lower down the menu.
* No pawn loans in TEG Jeweler: the shop type offers jewelry store or dealer, never pawnshop; a site still set to pawnshop has loans switched off and an admin notice asks to choose again. Pawn loans, estate buying, the police hold and the police report stay exactly as they were for TEG-METALSSHOP shops.
* Ring tags: barbell (dumbbell) and rat-tail jewelry tags with presets for common stock (Zebra 8000T 2.2" x 0.5", DYMO 30299 and more) or your own size; choose what each flap shows - price, SKU, description, metal and karat, carat weight, stone type, size, vendor style, a tiny Data Matrix / QR / Code 128 barcode and your cost code (a 10-letter word such as BLACKHORSE). Lab-created and simulant stones always say so on the tag (the FTC wording, "Lab-created", on tags, labels, receipts and listings). Print from the browser (DYMO / Brother drivers, exact sizes in mm) or send ZPL straight to a Zebra through PrintNode at 203 or 300 dpi. Batch-print the items ticked in Inventory, everything received today, a memo or a purchase; a print queue, a reprint list and a calibration tag with X / Y nudges.
* Special orders: what the customer wants made or ordered, design notes, private photos, the vendor, the quote, a deposit, the ETA and the status (quoted, ordered, received, ready, picked up, canceled). At pickup it becomes a sale and the deposit is applied. TEG Companion can list special orders and change their status.
* Memo goods: a vendor's pieces on loan, on the shelf and sellable at the counter (never listed online) but not your stock. What sells becomes a payable to the vendor (on the memo and as a CSV); the rest goes back to the vendor; the shop is reminded before the return-by date.
* Vendor style number and size on items; a gift receipt with no prices; customers' birthday and anniversary with optional reminders (text or e-mail, only with the customer's OK); a wish list per customer.
* Stone weight deduction: buy lines, pawn lines and inventory items take a gross weight and a stone (non-metal) weight; the metal weight is gross - stones (or type it yourself) and the melt and the offer use the metal weight. Tickets and receipts print the gross and the metal weight. Existing items keep their weight as the metal weight, so no price changes.
* Stone disclosure (FTC Jewelry Guides): a piece with stones needs a choice - natural, lab-created, simulant or unknown ("no stones" for plain metal jewelry). It shows on tickets, receipts, the inventory, the web shop and WooCommerce, and lab-created and simulant go in the listing title. Pieces from earlier versions are "unknown" and are not asked again.
* Watches: a new Watch category with brand, model, reference, serial number (required), movement, case metal, box and papers - on the buy and pawn forms, in TEG Companion and TEG Rover, and in the police report.
* Engravings and identifying marks on every piece, included in the police report (LeadsOnline-ready gains ItemBrand, ItemModel and ItemMarks; every profile carries them in the item description).
* Melt or resell: each item has a disposition. "Add every item marked scrap" fills a refining lot, and a settled lot shows its gain or loss against what the pieces cost (also in Reports > Refining lots).
* Written appraisals / insurance certificates (Appraisals): numbered and stored, one piece or a customer's set, with the stone details, photos, replacement values, the appraiser, a signature line and your disclaimer (Settings > Documents), linked to the appraisal appointment, with an optional fee line.
* Repairs: the stones are now counted at intake (on the job and the claim ticket), and at pickup the labor part of the charge goes on its own line. "Is labor taxable?" (Settings > Pricing & spot; Virginia: No - labor stated separately is not taxed; default Yes) decides whether that line is taxed. TEG Companion lists repair jobs, moves them along and adds photos.
* US spelling: the gem field is "Color" in the inventory export and the apps.
* Add-ons: a documented add-on API (version 1.0, docs/ADDON-HOOKS.md) lets a separate plugin add item types with their own fields, approve or refuse an item leaving the shop (sale, layaway pickup, pawn redemption, transfer - at the counter, in the web shop and in the phone apps), hear every acquisition, loan, redemption, forfeiture, sale, transfer, void, return, removal and identity edit, add columns to the police report, hide payment methods, restrict web listings, flag lots and ride along in backups. A shop with no add-on works exactly as before.
* Firearms: Settings > Store asks "Do you buy or accept firearms?" (No by default). No: buy, pawn and consignment intake warn, refuse a firearm, and make staff confirm "not a firearm" when a description mentions a gun, rifle, pistol, revolver, shotgun, firearm or receiver (who and when are recorded); house calls and estate pickups get "Firearms present? Leave with the family - we cannot take them"; an optional notice for receipts and the website. Yes: the FFL number, licence type, expiry (warned 60 days ahead) and licensed premises, plus the TEG Firearms add-on - until both are in place, firearm intake stays blocked.
* Shop type: a new install starts as a precious-metals dealer (no loan screens); an existing shop keeps the type it chose, or stays a pawnshop when it has loans.
* A payment that arrives by itself (online) for a layaway or a pawn payoff is always booked; if an add-on holds the goods back, the sale or loan page shows why and a "Release to the customer" button.
* Police reporting, more reliable: a day's upload that fails is now retried automatically (after 1, 2, 4, 8, 16 and 24 hours) instead of being lost, and the "sent" marker only moves after the agency's server, FTP or mail server has accepted the file. Days the site's scheduler missed are caught up (up to 14 days back). When a day fails the shop is e-mailed and an admin notice shows until it is delivered.
* Settings > Compliance has a delivery log: every upload with its day, file, number of records, size, result, error and retries, and "Resend" and "Download" for each.
* Upload profiles: "Generic CSV / pipe" writes exactly the file earlier versions wrote, so an agency set up for it keeps working. "LeadsOnline-ready" is our preparation for a certified LeadsOnline feed - separate first / middle / last name and suffix, the ID's issuer and expiry, a record action for voids and corrections, and item and ID photos in a zip - and is clearly marked as pending LeadsOnline's official specification (it is not certified).
* Choose per profile what is reported: purchases, trade-ins (buys paid in store credit), pawns, redemptions, forfeitures, consignment intake, TEG Rover estate pickups, voids and corrections. A ticket or loan voided after it was reported, or whose seller's name, date of birth or ID was corrected, is sent again once with the original number.
* Photos with the upload (optional): item photos and, if your agency asks, the seller's ID photo, taken from the private photo store, with size caps. The package is built in the shop's private folder and deleted as soon as it is sent.
* SFTP checks the server's host key before it sends the password: enter the fingerprint your agency gives you, or confirm the key the server shows on the first connection.
* Customers have first, middle and last name and suffix as well as the full name. Existing names were split automatically (the full name is kept exactly as it was); names that could be read two ways - "de la", a single name, four words, two people - are listed under Customers > "names to check" with "Looks right" and "Fix". Scanning a driver's license fills the parts straight from the license. TEG Companion sends and shows the parts too.
* The e-mailed transaction report is written in the shop's private folder and the CSV gains the name parts as its last columns.
* The daily police report and its upload no longer stop when the site's scheduler (WP-Cron) runs them.
* TEG Companion, more of the counter in a phone: besides buy tickets, payouts, notes, photos and payments, staff see the spot prices, price a lot before buying, scan the back of a driver's license to fill in a customer, look up stock by its label, pawn loans and today's appointments, and (with the drawer permission) the cash drawer. Every request runs as that person with their own permissions, and a buy written on the phone keeps every counter rule: ID on file and in date, the minimum age, not banned, "ID checked", the police hold, the cash drawer, the buy-limit check. Open buy-limit flags must be acknowledged on the phone before it pays out, and typing your own offer needs the "change prices" permission. A phone that loses its connection queues its work and sends it once, never twice.
* TEG Rover: mobile buying. "Send to TEG Rover" on an appointment (an estate, a large buy, an appraisal at the seller's address) makes a call for a buyer's phone, filled with the seller, the time and the address; the appointment follows the call (confirmed, arrived, completed) and a finished mobile buy starts a draft buy ticket for the seller. A buyer who pays out at the house pairs "both apps" and writes the ticket in TEG Companion.
* One place to pair phones: Setup > Rover phones pairs TEG Companion and TEG Rover (QR code, the code to paste, or the 9-digit short code for TEG Companion). Phones paired under 1.11 keep working - their keys move over by themselves, no new pairing.
* Fast phone reads: the phones read through a lean entry that skips the theme and the other plugins - the same checks and the same answers, many times faster (on by default, Settings > Integrations). The site checks that a security plugin is not blocking it and tells you the exact BulletProof Security whitelist line if one is.
* Phone keys are never included in an export or a restore, and the demo reset leaves them alone.
* The license check no longer waits on the license server during a normal page load. A paid license that has checked in once keeps working if the server cannot be reached, its answer is remembered between pages, and a check that does go out gives up after a few seconds instead of holding the page.
* Looking for plugin updates now happens in the background (WP-Cron), not while a page loads. "Check now" on the License tab still checks right away.
* Settings > Integrations opens quickly when PrintNode cannot be reached: the printer list is looked up for at most 8 seconds and a failed lookup is not retried for ten minutes ("Test" still checks right away).

= 1.11.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.11.2 =
* Get my license: Settings > License - enter the order number and e-mail to install your license; Check license; Release this website.

= 1.11.1 =
* Repairs (FRONT COUNTER): take in a customer's piece for work - ring sizing, chain soldering, retipping prongs, stone setting, polishing, watch batteries, clasps, rhodium, engraving. Record the piece (type, metal, karat, stones), its condition at intake, the estimate, a deposit, the promised date and the jeweler. Jobs move received, quoted, approved, in progress, waiting on parts, ready, picked up (or declined / canceled), each step kept in the job's history. Intake and after photos are private. Print a claim ticket with an envelope tag for the customer; at pickup the job becomes a counter sale with the deposit already on it. The list filters by status, jeweler and overdue promised dates; the customer page and the dashboard show repairs. Nothing is ever sent to the customer automatically.
* Sample data rewritten: two months of a jewelry & bullion counter dated from today - 25 customers, 40 pieces of stock with product photos, gold-buy tickets, sales, layaways (one behind on its payments), pawn loans in every state, consignments and repair jobs. Loading it twice adds nothing. Photos are from Pexels (Pexels License); see sample-data/photos/SOURCES.md.

= 1.11.0 =
* Companion phone app: pair TEG Companion from Setup > Phones (QR or code) to work the shop from your phone - sellers, buy tickets, the payout (through the same age and ID check as the Buy screen), notes, photos and signatures (kept private, never in the media library), payments on invoices and the day's total. The ID number and ID photo never go to the phone, a police hold cannot be released early from it, and ticket notes can be added but never changed or deleted.

= 1.10.2 =
* Spot prices: The Eldest Geek METALS feed now comes from theeldestgeek.com and is unlocked by this shop's own licence (the 30-day trial included) - no separate METALS API key any more, so that setting is gone from Settings > Pricing and the setup wizard. If the feed refuses the licence, or has no prices yet, the Spot prices screen now says exactly that.

= 1.10.1 =
* Security: the inbound-SMS webhook accepted posts from anyone when SMS was off, or with ClickSend / a generic webhook and no shared token set (the default) - fake customer texts, shop e-mails and events. It now refuses unless Twilio signs the request or the shared token matches; the setting says the token is required.
* Speed: the unanswered-texts badge in the admin menu grouped the whole SMS log on EVERY admin page; it is now computed once per request and shared for 60 seconds, and a new inbound text or a reply clears it at once (the same fix as TEG-RepairShop 1.36.2).

= 1.10.0 =
* The Metals menu is grouped: Dashboard first, then FRONT COUNTER (buy tickets, counter sales, pawn, quotes, reservations, consignments, customers, appointments), SALES & MONEY, METAL & STOCK, COMPLIANCE, TOOLS and SETUP, alphabetical within each group. The group headings are bold capitals in the open menu, the hover fly-out, the collapsed menu and on a phone; a heading only shows when you can open something under it. Every page keeps its address.

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

= 1.9.1 =
* Internal: sign-in helper matches the reference signature; comments updated.

= 1.9.0 =
* "What's new": after an update, a card on the TEG-METALSSHOP screens lists what changed - once per person (it used to be once for the whole shop, so whoever looked first hid it from everyone else), then a "What's new" button on the dashboard reopens the same notes in a pop-up window. In demo mode, where every visitor shares one login, it is remembered per browser instead.
* Customers can sign in to their account with their e-mail, phone number, full name, first name, or the part of their e-mail before the @ - with their password. When a name fits several customers the password decides; if more than one still fits, or more than five customers share it, the customer is asked for their e-mail. Sign-in attempts are limited per customer, per identifier and per visitor, forgot-password and sign-in links are limited too, and a disabled account stays disabled (a sign-in link no longer switches it back on).
* Demo sites: the demo customer account now uses the one sign-in shared by every demo shop (the demo site shows it). It works only while demo mode is on; with demo mode off it is refused, never created, and its password is wiped. The old demo account is retired and its password wiped too, and no sign-in details are printed on the shop's pages any more.

= 1.8.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 TMS_NO_LICENSE_NETWORK in wp-config.php.

= 1.8.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.8.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 shop's web address; after that it keeps working normally even if the server is unreachable. Your data is never locked away - everything stays readable and can be exported 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. Settings > License says so and "Re-check with license server" completes it. Shops 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 report exports (sales, inventory, customers, pawn, appointments, commission, payroll, market, compliance/AML and law-enforcement logs), taking a new backup, and starting an online card payment. Viewing and exporting your own data for portability (the full data export and the settings export), restoring or downloading a backup, and completing a payment already in progress are always allowed.
* Settings > License shows this site's address, whether it is validated, and when a license is in use on more sites than it was sold for.

= 1.7.0 =
* Payment methods you accept: Settings > Customer page lists Zelle, PayPal, Venmo, credit card, check and cash, each with a line of details printed for the customer. Card, check and cash are ticked on an upgrade, so nothing a customer sees changes until you opt in. Saving with nothing ticked keeps the previous list and says so.
* Ways to pay on every sale and layaway: a new one offers everything you accept, with a tick list on the sale form to take a method away for one customer. While a balance is owed, the printed receipt, the customer's receipt page, the e-mailed receipt and the layaway reminder list the ways to pay with your details. A method you stop accepting stays on receipts already issued.
* The "Pay by card" (Stripe) button shows only when Credit card is accepted and offered as well as Stripe being set up.
* Every payment records who took it, when and an optional staff note, shown on the sale screen. The printed receipt lists "Payments received" by date, method and amount - never the note. "E-mail the customer a receipt" is unticked unless you tick it.
* Taking a payment lists the accepted methods first, then the shop's own - bank transfer / wire, store credit, gift card, other - which are never offered to a customer.

= 1.6.1 =
* 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.
* Payroll can now be handed over to TEG SHOP PAYROLL, the new standalone payroll add-on that works beside any shop in the family. While the add-on is active this module stands down and its Payroll menu is hidden, because two payroll systems on one site would keep two sets of runs, each believing it is the record of what somebody was paid.
* Nothing is deleted when that happens: the payroll tables stay where they are, the add-on copies the approved runs rather than moving them, and deactivating the add-on brings the Payroll screen back with its figures intact. A shop without Pro still sees the Payroll menu, because that screen is where it learns payroll exists.
* The demo customer sign-in published on demo sites (demo / demo) now actually signs in. The password was being refused for being under eight characters, silently, so the account existed but could never be used. Real customers still need eight characters.
* CSV imports and exports no longer write a deprecation warning to the debug log on PHP 8.4.

= 1.6.0 =
* Payroll preparation (Pro): works out what each person earned for a period from the sales commission the shop already records, freezes it as an approved run, and exports it in the shape Gusto, ADP, Paychex, Patriot and QuickBooks import. It prepares payroll and does not file it: no tax is withheld here, and the screen says so.
* Commission is the source here because this shop records commission and has no time clock; the screen pays on what the shop actually records rather than waiting for a time clock to be built.
* An approved run is frozen: a late sale or an edited commission cannot change it afterwards, the same period cannot be approved twice, and withdrawing a run marks it void rather than deleting it. Recomputing a period that has already been paid is how it gets paid twice.
* 1099 contractors are handled end to end, because there is nothing to withhold: the screen totals what each was paid this calendar year from approved runs and flags anyone over the 1099-NEC reporting threshold.

= 1.5.1 =
* Updates follow the license fairly: a lifetime or current license installs any version, and an expired license installs any version released on or before its expiry date, forever, including a fix published while it was paid up. WordPress only offers an update the license covers, and the plugin keeps working either way.
* Bundle licenses that include the newest shops in the family now name every product correctly on the license screen, instead of naming the wrong ones.
* No more warning written to debug.log on every request under WordPress 6.7 about translations loading too early. It changed nothing about how the plugin behaves, but it buried whatever the site was actually trying to debug.

= 1.5.0 =
* The optional "Authenticator code" box on the WordPress login page now appears only when two-factor sign-in is in use (the policy requires it, or at least one user has set it up), instead of on every site the plugin is active on. On a site running two of the shops it no longer appears twice.
* Bundle licenses that include TEG-MARKET, TEG-WINERY or TEG-VETCLINIC now show those products by name on the license screen instead of an empty name, and a bundle carrying TEG-ELECTRIC is recognized.

= 1.4.1 =
* Support and feature requests, from inside the admin: ask for help, report a fault or suggest a feature without hunting for an address. It files a real ticket in the same Doctor ticket system a support call goes into, so it has a number and can be chased, and e-mails it as well. A support request can carry the facts that make it answerable, the plugin, WordPress, PHP and database versions and the license state, behind a box that shows you exactly what will be sent; it never sends a customer record, a license number from an identity document, or the license code. If the ticket cannot be filed the message still goes by e-mail, and the screen says which of the two worked.

= 1.4.0 =
* Backups: every table and the settings written as one package on a schedule, to a local folder, FTP, Amazon S3 or Dropbox, with a retention count, download, and a one-click restore that asks before it replaces anything. The shop holds license numbers and loan records, so this was the gap that mattered most.
* Change history: a before-and-after record of every edit to a buy ticket, a loan, an invoice, an item or a customer, showing who changed what and when, with the old value struck through beside the new one, and a searchable audit screen.
* Two-factor sign-in with Google Authenticator or Authy: an enrollment QR code, ten single-use backup codes, an administrator reset for a lost phone, and a setting that requires it for staff.
* Sign-in safety: every active session listed with its address and browser, per-session revoke and sign out everywhere, an e-mail the first time an account signs in from a new device, and an optional address allow-list that shows your own address beside the box so you cannot lock yourself out.
* The floor page: a phone-sized staff screen at ?view=floor with loans due and overdue, items on police hold, today's buys and sales, tap-to-call, search by number, name or phone, and payments or renewals taken from the card. It works from the last data it loaded when the connection drops.
* Appointments: bookable times for appraisals, large buys, estate lots and loan payments, with live availability, confirmation and reminder e-mails, a manage link the customer can use, a calendar file and feed, a week view, and one click to turn an appointment into a buy ticket.
* Buy limits and structuring alerts: your own thresholds for a single transaction, a rolling window per customer and repeat visits, flags raised when they are crossed or approached in pieces, a review screen that records whether you reviewed, reported or dismissed each one, a warning banner on the customer and the ticket, and a report you can export.
* Bench scale: read the weight straight off the scale through the browser's serial connection, or from a scale server on the local network, into the buy ticket and the item form. It stays hand-typed on a browser that cannot do it.
* Marketing audience: the customer list exported for WP-MARKET or as a CSV, segmented by bought, sold, active loan, redeemed, forfeited, layaway, high value and quiet for N months, honoring the marketing opt-out, with a scheduled feed and a signed link.
* Webhooks: several endpoints instead of one, a catalog naming every event the plugin sends with its payload shape on screen, a shared secret and signature per endpoint, a delivery log with retries and backoff, send again, and a test payload button.
* A security pass over everything added since 1.2, with fixes: the nightly backup package and the "no secrets" settings export were carrying every API key and password the shop had, in plain text, to FTP, S3 or Dropbox, and no longer do; a restore now keeps this site's own credentials instead of overwriting them with the package's; webhook deliveries no longer hand the receiver the shop's own API key, because the per-endpoint signature already proves who sent the message; clearing a buy-limit flag now needs the reports permission, so the person who set one off is not the person who clears it; and the daily law-enforcement file is written into a folder nobody can guess rather than under a predictable name.
* Browser tests (Playwright) covering the customer side: the shop page, the price board, ticket lookup, the pricing-request form, customer accounts, the installable app, booking and phone-width layout. They found on their first run that every pricing request sent from the shop page was being silently discarded, because a form field named "name" makes WordPress treat the submission as a request for a page that does not exist. That field is now q_name and the requests arrive.
* E-mail: SMTP settings with a test button that reports the mail server's own words, and a log of what was sent and what failed, so a host that quietly drops mail is visible instead of blamed on the plugin.

= 1.3.0 =
* Online pawn payments: a signed-in customer (or anyone with the pay link) renews, pays down or pays off a loan by Stripe Checkout; the amount is always worked out at checkout time from the accrued interest, forfeited and closed loans are refused, and the webhook records it through the loan ledger exactly once.
* Two-way texting: an inbound SMS webhook (Twilio signatures checked) files messages into the text log, matches them to a customer by number and e-mails the shop; an Inbox screen groups conversations by customer, unanswered first with a menu badge, with a reply box and mark-read, and the thread shows on the customer record.
* Driver's-license scanning: any USB 2D scanner in keyboard-wedge mode fills the customer form from the AAMVA barcode, or finds the repeat customer by license number on a ticket.
* Coin catalog with a bundled starter list, a picker that fills metal, purity and weight, grading fields (service, grade, cert, population), gem fields (carat, cut, color, clarity, lab, cert) on the item form, catalog and receipt, and an optional Greysheet price lookup.
* Refining lots: build a lot for a refiner from scrap in stock, send it, settle it against the assay and fees, and see cost, expected, settled and variance in Reports > Refining lots; a lot prints as a packing list.
* Price board: a full-screen wall display with live spot, what you pay per gram, pennyweight and troy ounce, a clock and your own message, refreshing itself with no login.
* Gift cards redeemable as a counter-sale payment method, a store-credit ledger (with a bonus % for taking a buy ticket as credit, and optional automatic use on new sales), loyalty points earned on paid sales and redeemed as a discount, and sales commission per clerk with a report and CSV.
* Aged inventory report by 0-30 / 31-60 / 61-90 / 90+ day buckets with cost and melt, plus a bulk markdown on the inventory list that takes a percentage off the premium or the asking price, logged.
* Importers: "Import from another system" reads a customer or inventory CSV, auto-detects Bravo and PawnMaster headers, shows a column-mapping screen and the first rows, then imports with dedupe on phone / e-mail and SKU.
* WooCommerce shop window: in-stock coins, bars and rounds published as products at spot plus your premium plus a web markup, taken off the shelf when they sell either way; a paid web order is written up as a counter sale.
* QuickBooks Online / Xero sync: paid counter sales pushed as sales receipts and paid buy tickets as bills, once each, daily from cron or on demand.
* PrintNode printing: "Send to printer" for receipts and buy tickets as 42-column ESC/POS with a QR code, a cut and the cash-drawer kick; a test-print button, and everything still works without a key.
* Scheduled law-enforcement upload by e-mail, FTP or SFTP with a log of every attempt.
* The customer page installs on a phone (web manifest and service worker with your shop name, logo and accent), and a five-step first-run setup wizard gets a new shop trading.
* Help gains sections on scanning, coins and gems, refining, the board, the Inbox, the retail extras, markdowns, the shop window and books, importing, and a certified-hardware list (scanners, label and receipt printers, drawers and scales).

= 1.2.0 =
* Online bullion catalog: "Buy bullion" on the customer page lists in-stock coins, bars and rounds with photos and live prices; customers reserve and collect, staff confirm / cancel / turn the reservation into a sale (Reservations menu).
* Price alerts: customers ask to be e-mailed when a metal goes above or below a price; the hourly job sends once.
* Online payments through Stripe Checkout for layaways and receipts, from the account page and from pay links in e-mails, recorded by a signed webhook.
* Law-enforcement upload file (LeadsOnline / RAPID style, CSV or pipe-delimited) from the Transaction report, optionally e-mailed to the agency every day.
* Item photos on buy and pawn ticket lines (phone camera at the counter), on the printed ticket and the customer's copy, carried onto the inventory item.
* Assay / test log: method, measured purity and pass / fail per ticket line, with a report by method and tester.
* Text-message reminders (Twilio, ClickSend or a generic webhook) for pawn due / overdue and layaway, for customers who opted in.
* Multi-location (Pro): named locations, a per-user working location in the header, stamped on records and filtering lists and the sales report.
* Consignment: take items in for a split, sell them through the counter, settle with the owner and print or e-mail the statement.
* "What's new" notice after an update and a release-notes card on Help; settings-only export / import; demo mode that reloads the sample data nightly; accessibility pass on the customer page.

= 1.1.0 =
* A complete customer page at /teg-metalsshop/ drawn by the plugin's own template: Home, Today's prices, Sell to us, Loans, Check a ticket, My account, Help, Terms; top bar with a Return button and staff shortcuts.
* Customer accounts: e-mail + password (not WordPress users), self-registration or invitation, forgot-password and one-click sign-in links, profile and password changes, throttled logins.
* Signed-in customers see every receipt, layaway, pawn loan (payoff as of today) and buy ticket, each printable from a private link.
* Sell to us: the customer describes items, sees an indicative offer at today's spot and sends a quote request; the shop replies by e-mail and starts a buy ticket from it (Quote requests menu).
* Settings > Store > Shop type: precious-metals dealer (buy and sell only, loans switched off everywhere) or pawnshop (everything).
* Settings > Customer page tab; shortcodes [teg-metalsshop-account] and [teg-metalsshop-quote] for theme pages.

= 1.0.0 =
* First release: spot prices and melt, buy tickets with ID compliance and police holds, inventory at spot, counter sales and layaway, pawn loans with interest / renewal / redemption / forfeiture, cash drawer, reports incl. the law-enforcement transaction report, public ticker / calculator / lookup, REST API, baked-in 30-day Pro trial, self-hosted updates.
