Withholding tax for foreign purchases

Our customer has a case where a withholding tax is applied for purchases made for some foreign suppliers.

But the tax is not added to the invoice amount, however it has to be paid for the government.

 

For example, the invoice amount is 1000$ and withholding tax is 10%... this amount is tax inclusive.

 

The total amount with withholding tax will be: (1000$/90%)*100 = 1111$

 

So the purchase invoice journal should be:

Dr. Services expense account 1111 $

Cr. withholding tax accrual 111 $

Cr. AP supplier 1000 $

is this possible to apply in Sage X3 v11?

Thanks