As you know CRM has no built-in systems for the accounting and hence VAT-Clearances. You could write your own JavaScripts or Plugins on the state change of the invoices. The requirement in not so complex to create a solution for it. You could write a JavaScript
also on the save or change of the invoice also.