Add check for record['discount'] = None