VAT for companies to be deducted in the payment process

Hello peoples,
i have a question.
We are a store from Germany and had an inquiry from a company in Austria. They wanted to buy products from us for their hotel. In the payment process, when you enter the VAT ID, the VAT should actually be deducted directly. But this is not the case. How can I integrate this during checkout so that this happens automatically for company orders in future?
Greetings from Germany, Ronja