Skip to content

Release v2.0.5

Choose a tag to compare

@github-actions github-actions released this 21 Nov 08:12
585fc85

Lets a manager reassign a sale to another cashier, and fixes guest payments on WooCommerce 11.3.1, several push and sign-in failures, and sync tables that go missing. Action may be needed: see Upgrade and compatibility.

Upgrade and compatibility

  • Custom receipt templates: a returned line's qty is now negative and total_qty is the net count; templates that assume a positive qty must handle the sign. (#2684)
  • Extensions that store visible order-level meta (custom order fields): a push now writes the till's value for any visible order-level key not in wcpos_sync_order_revision_meta_keys instead of refusing on conflict; existing hidden keys off the list are still never overwritten. To keep a visible key conflict-checked, add it to that filter, which at order level now lists every hashed key, visible or hidden (in 2.0.3 it listed hidden keys only). (#2713)

Added

  • Users with reassign_woocommerce_pos_sales can set _pos_user on a pushed order to another existing POS user; other _pos_user values are still ignored. (#2719)
  • A cashier or store change on an order with a sale record, from a push or the WP Admin cashier select, appends a reattribution fiscal record (who, when, from, to, corrects_record_id). If the record cannot be written, the change is not applied and an order note says so. (#2719)
  • Opt-in fatal-error events sent to WCPOS's error reporting carry the request kind, its REST route and a path with token-like segments masked. (#2700)

Fixed

  • Guest-order payments on the pay page work again on WooCommerce 11.3.1, whose new order-pay email check dropped them once the order was more than 10 minutes old. After WCPOS authenticates the request (order key and cashier JWT), woocommerce_order_email_verification_required returns false for that order in the order-pay context only. (#2698)
  • POS customer creates forwarded to wc/v3/customers get a generated username and password, so they no longer fail with "Missing parameter(s): username" when the store does not generate them. (#2704)
  • A re-pushed pos-discount line that drops its intent keeps the stored quick discount instead of failing with "pos-discount does not exist"; an edited or deleted quick discount inherits nothing. (#2703)
  • Pushes no longer 409 on every attempt when another plugin serves order meta whose value changes on read (one served an unsaved row holding the clock, so no order could check out). (#2713)
  • A sync table (journal, stored digest, mutations) dropped after install is re-created under the DB upgrade lock, instead of every gated sync request answering 503 wcpos_sync_unavailable. When a table cannot be created, its name and the database error are logged. (#2712, #2711)
  • A surviving journal keeps its epoch and watermarks during that repair, so clients do not resync; only a missing journal starts a new epoch. (#2712)
  • Session-row writes are compare-and-swap, so overlapping sign-ins and sign-outs of one user no longer lose a sign-in or bring back a signed-out session. (#2656)
  • Receipt data keeps a returned line's signed quantity and unit price instead of 0 at 0.00, and the fiscal sale snapshot stores the signed quantity; returned lines carry no savings and saved totals are clamped at 0. (#2684)
  • POS Only hooks return early on non-product queries and skip a redundant re-check. (#2699)

Developer and contract changes

  • The order revision recipe changes: order-level meta is hashed only for the keys that filter lists (see Upgrade and compatibility), and a meta row served with a numeric non-positive id is outside the hash on orders and lines (its echo in a push is dropped, not stored). Line meta hashing is otherwise unchanged. Revision hashes change for orders carrying such meta. (#2713)
  • A sign-in whose session row cannot be stored answers 503 woocommerce_pos_auth_session_not_stored instead of a token pair the next request refuses as revoked. New error code on sign-in. (#2656)
  • The payment-methods envelope adds default_method, the admin's default gateway, so the app can preselect it. Contract stays 1.3; older apps ignore it. Additive. (#2681)
  • The status route advertises order_cashier_reassignment. Additive. (#2719)
  • New filter wcpos_error_reporting_request_context turns off the request context on fatal-error events. Additive. (#2700)

Maintenance

  • Bundled Sentry PHP SDK 4.37.1, with guzzlehttp/psr7 held at 3.2.0 until the scoped build handles its trigger_deprecation() call (tracked in issue #2678). (#2697, #2671)
  • Translation version pinned to 2026.11.21. (#2682, #2683)

Full diff: v2.0.4...v2.0.5