Ensure the discount code processing for EDD runs before referral completion. #406
Use ->affiliate_id in discount code tracking to fix #406