invoice: add 'active' field to coupon code table