Discounted line items

@schleichardt please review.