Remove line-item-level taxes and discounts. Change amount to rate. Use discount and discount_item at the Sales Order level to handle discounts.