update getDiscountinfo functions