Fix TextInvoice to work under the new PrintInvoice template class