past-orders changed VarID to n/a if product is not variable type
Added refunds and reformatted order table to count per-order totals
Discount ommitted if zero