Hey,
With multiple page invoices, is there a way to move an entire product line and info to the second page of an invoice in the pdf layout?
I sometimes run into an issue where the product line is one page 1 but the additional info is n page 2.
This is very unclear and seeing it can be important export info, I’d rather have the entire product on the second page.
deleted screenshot
Hi Gijs,
Thanks for bringing this to our attention!
From memory, you have a custom invoice template and don’t use Breww’s one. We can make the fix in Breww’s one, but you’d need to copy the fix into yours.
To fix this, you’d need to wrap each product line table row in its own table body element, with the following css class:
```
{# Product lines #}
{% for line in lines %}
<tbody style="page-break-inside: avoid;">
<tr>
{# all td rows, e.g. name, quantity #}
</tr>
</tbody>
{% endfor %}
You can then put a separate tbody around the other totals, to ensure the page doesn’t split/break on those too.
We will shortly make this change to our Breww Modern template as well, so you can use the comparison tool to see what we’ve done.
I hope this helps! If you’re not sure, feel free to open a ticket for help.