Skip to main content

Rentiva v4.58.0 — Financial Bug Fixes, Dashboard Polish, Expanded i18n

· 3 min read
MaxHandMade
Maintainer

Critical fixes for remaining-payment double-tax and orphan WC orders after auto-cancel. Dashboard widgets gain status badges, plate, location, and a deposit/remaining split. The About > Support tab adds a GitHub Issues card, test stats, and a changelog accordion. The License page moves to a 2-column grid, and Messages adopt a React 18 chat bubble UI. 88 new Turkish translations.

Critical financial fix

Sites using deposit + remaining payment with prices_include_tax enabled should run sync_orphan_wc_orders() via WP-CLI after upgrading, to clean up historical pending orders. No schema changes.

What's New

Critical Fixes

  • Remaining-payment double-tax: the remaining-payment WC order no longer double-taxes — it uses wc_get_price_excluding_tax() when prices_include_tax is on. Customers no longer overpay roughly 20% of the remaining amount.
  • Orphan WC orders after auto-cancel: auto-cancelled bookings now correctly cancel their linked WC orders (deposit + remaining). A one-time backfill helper — sync_orphan_wc_orders() / sync_stale_past_bookings() — recovers historical orphan pending orders.

Fixes

  • Addon list and statistics read the WooCommerce currency dynamically (previously they read the plugin setting instead).
  • Recent Bookings widget shows the customer name (with WC order billing fallback) and the vehicle location.
  • Pending Payments widget shows deposit and remaining as separate rows with status-aware aggregation, using WC order totals as the source of truth.
  • Defensive null coalescing for optional booking_data keys in WooCommerceBridge — removes Undefined array key warnings from the PHP debug log.
  • WP Dashboard widgets (Stats, Upcoming Operations, Pending Messages) now share consistent footer and bubble styling.

Features

  • Upcoming Operations widget (both the WP Dashboard PHP version and the plugin Dashboard React version) adds plate, a status badge (green/amber/blue), and the end date.
  • Quick Actions grid adds Transfer and Vendors shortcut buttons.
  • License page uses a 2-column grid (account info left, Lite/Pro comparison right), a version pill in the header, and a flex action button row.
  • About > Support tab adds a GitHub Issues card, a Test & Verification stats card, and a version history accordion (first 5 visible, toggle for the rest).
  • Messages thread view adopts a modern chat bubble layout — right-aligned blue for self, left-aligned gray for the other party, with a You suffix.
  • Shortcode Pages admin now tracks all 26 registered shortcodes (was 20) — vendor/user/popular routes added.

Chore

  • Removed the dead Revenue Chart dashboard widget and Charts.php (~85 lines of orphan code left after the React migration).
  • ReactDOM.render → React 18 createRoot migration in the Messages bundle.

Tests

12 new PHPUnit tests across the RemainingPaymentTax, AutoCancelOrderKeyLookup, and ShortcodePagesController suites — 1215 tests total, 0 failures. 88 new Turkish translations were added across Pro features, block editor settings, email templates, and the chat UI.