add discounts per line on views, refs #4738