Updated addLineItem to account for discounted amounts.