Added discount and pending amount feature