To add the invoice text not only to invoices and credit notes but also to other document types, you need to add the following block to the respective template file:
{block name=“document_index_info_dispatch”}
{assign var=“viisonDATEVIsTrackedDocumentType” value=“true”}
{$smarty.block.parent}
{/block}