Diagnostic: Stale Pick Table Rows

Stale Pick Table Rows β€” Functional Description

Read-only inventory diagnostic. The Pick Table value on updateInventory.php comes from GetPickedOrders() in shelfQuantity.php, which sums pd_pick_table.quantity for a product with no order-status filter. Leftover pick rows on closed orders inflate that total and can produce a negative Shelf Quantity. This page lists those leftover rows so the stale footprint can be measured before any cleanup is approved.

  • Source table / column: pd_pick_table.quantity (also product_id, order_id, date_added).
  • Closed statuses: Completed / Complete, Shipped, Canceled / Cancelled, Denied, plus other fulfilled / not-fulfilled IDs from orderStatus.php. Live outstanding statuses (Paid, Processed, Backordered, etc.) are excluded.
  • Orphans: Pick rows whose order_id no longer exists in oc_order are included and labeled Order missing.
  • No writes: This tool never INSERT / UPDATE / DELETE. Use Product ID to open Update Inventory and Order ID to open Order Status.
Stale pick rows: 5 Products: 5 Orders: 4 Stale picked qty: 14

Showing 1–5 of 5 stale pick-table row(s). This report does not change any database values.

Product IDOrder IDCurrent OpenCart Order StatusPicked QuantityDate Added β–Ό
3779 235463 Canceled 10 2026-10-01
2266 235450 Canceled 1 2026-09-27
1252 235452 Canceled 1 2026-09-27
293 235451 Canceled 1 2026-09-27
1757 235452 Canceled 1 2026-09-27