How vat is calculating when there is discount in invoice?

We need to calculate vat amount based on total amount after reducing discount.

now erpnext is reducing discount amount from total amount including vat .any solution for this.

Hi dear ,

  1. tax type : On Net Total
  2. Apply Additional Discount On : Grand Total

regards,