How to add discount before tax?

Kindly go to the invoice >>click on more option>> click on edit invoice >> click on change discount type >> select unit price >> apply the discount >> click on save.