Is it possible to add a post-tax discount

For example, if the sale price is $100 and taxed at 10%, but the customer has a 50% discount. I want the tax to be calculated from the original price, setting it to $10. The customer is charged $50, but the tax is still $10