fix customer discount bugs