fix divide-by-zero error when no quantity discount