{oeordhdr_sql.ord_dt} in {?Starting Date} to {?Ending Date} and
{oeordhdr_sql.ord_type} = "Q" and
{oeordlin_sql.item_desc_2} startswith ["15", "20", "30", "BM", "EX", "HP", "MF", "MPF", "SO", "VD", "VP"] OR
({oeordhdr_sql.oe_po_no} startswith ["LD", "BM","EX","HP","MF","MPF","VD","VP"] and
{oeordhdr_sql.discount_pct} in [10.00, 15.00, 20.00, 25.00, 30.00, 35.00, 40.00, 5.00, 50.00] and
{oeordhdr_sql.ord_dt} in {?Starting Date} to {?Ending Date})