Invoice with copy, as required in some countries

If you need duplicate copies of your invoice (one labelled f.e. " / Copy") you can do the following:

  1. split the invoice template just after the starting <body> tag into a header part (named f.e. ip_head.php) and a body part (ip_body.php)
  2. go to the <h1 class="invoice-title"> tag in the body part and add
    <?php ($h1Addition ?? ''); ?> just before the closing </h1>
  3. delete </body></html> from the body part.
  4. Create a new file with a distinct name (f.e. MyIp.php):
<?php
    require('ip_head.php');
    require('ip_body.php');
    echo "<pagebreak />";
    $h1Addition = " / Copy";
    require('ip_body.php');
?>
</body></html>
  1. Under Settings-> Invoice use this file (MyIp) as template.