Operational cleanup for leftover pd_pick_table rows that inflate
Pick Table on updateInventory.php and can produce a
negative Shelf Quantity. This page deletes matching rows in AJAX batches of
2500 inside a database transaction.
It never modifies OpenCart catalog fields (oc_product.quantity,
price, status, name, or description).
oc_order is Completed / Shipped / Canceled / Denied, or whose
order_id no longer exists. Live outstanding statuses (Paid,
Processed, Backordered, etc.) are excluded.order_id + product_id. The newest
MAX(id) row is kept; extras are removed.pd_pick_table only.
Core OpenCart tables are not updated. Database:
opencart_fsreal_oc3.
Previewing the first 6 of 6 candidate row(s). Confirm below to start batched deletion. Remaining rows are always the next unmatched IDs (offset stays at 0 after each successful delete).
Preparing...
| Pick Row ID | Product ID | Order ID | Current OpenCart Order Status | Picked Quantity | Date Added |
|---|---|---|---|---|---|
| 35463 | 293 | 235451 | Canceled | 1 | 2026-09-27 |
| 35464 | 1757 | 235452 | Canceled | 1 | 2026-09-27 |
| 35465 | 1252 | 235452 | Canceled | 1 | 2026-09-27 |
| 35466 | 2266 | 235450 | Canceled | 1 | 2026-09-27 |
| 35477 | 3779 | 235463 | Canceled | 10 | 2026-10-01 |
| 35520 | 7097 | 235502 | Canceled | 7 | 2026-11-04 |