This requires that the trade agreements are active. For additional details, see the form. The line discount calculation is based on the total line amount after the deduction of discounts and the addition of various order miscellaneous charges. For additional details, see the calculation of line amounts in the box. When you update the sales invoice, the discount is posted to those discount accounts defined in the System accounts (form)form.