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 5 of 5 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...