Tax code for EU purchases

Good afternoon,

Please could someone advise which tax code should be used for the following transaction

Goods puchased from a EU company (vat registered) the goods were shipped to another country in the EU.  Purchase invoice was received with eu vat included.  The sales invoice was to a UK company therefore invoiced with VAT.

Are we able to reclaim the vat on the purchase invoice and if so how? Sage version 27.1 & above

Many thanks