To do this, the trade agreements must be activated. For more information, see the form. The line discount is calculated from the entire line amount, after deducting the discount amount and adding the . See also calculation of the line amount in the field. When the invoice is updated for the purchase, the discount will be posted to the discount accounts as defined in the form.