Standalone Inventory menu program that builds a ranked shortlist of active,
in-stock catalog products (excluding discontinued -Disc- models)
and lets the operator assign a percent-of-profit cut that becomes an
oc_product_special row. Ranking modes include fastest/slowest
sellers, newest/oldest inventory, products with no sales, highest retail,
highest profit margin, and largest available stock. Sales volume is read from
pd_orders_accumulated. Product titles join
oc_product_description with language_id = 1.
Excluded SKUs in pd_special_sales_excluded_products and
pd_special_offers_excluded_products are omitted. Existing
specials expand in a nested drawer under each product name.
Operator guidelines
oc_product_discount quantity-1 price when present. Groups 3 and 7 are omitted.oc_product_special dates without leaving the grid.