Fix bug 1588 : relative discount