Tax in the right way?

Hello and thank you for your work. Invoice plane is just so good !
But, I’m not able to use correctly the Discount with the VAT or maybe, the calculation is not correct.

This is an example :
Article Something | Quantity 1 | Price 1000 | Discount 100 | VAT : 20%
The Total is 1100

But, as I understand
Quantity x Price = 1000
SubPrice - Discount = 900
900 x VAT = 1080 and not 1100

Where is my mistake ?

Thank you

Christopher