Is there a way to integrate the page break checkbox which is available at the end of the Items Child table inside a Quotation, Invoice or similar to activate?
If have tried this, but it is not breaking right after the item which page-break has enabled but just breaking the page before the complete item table.
This is my item table inside the custom html print format:
<table class="w-100 text-small">
<thead class="black-border">
<tr> <p style="font-size: 8pt">
<th style="width: 5%"><p style="font-size: 8pt">{{ _("Sr") }}</p></th>
<th style="width: 45%">
<p style="font-size: 8pt">{{ _("Description") }}</p></th>
<th style="width: 12%"><p style="font-size: 8pt">{{ _("Unit") if not print_settings.print_uom_after_quantity else ' '}}</p></th>
<th style="width: 8%" class:"text-right"><p style="font-size: 8pt; text-align:right">{{ _("Qty") }}</p></th>
<th style="width: 15%"><p style="font-size: 8pt; text-align:right">{{ _("Price") }}</p></th>
<!-- <th style="width: 15%"><p style="font-size: 8pt">{{ _("Discount") }}</p></th> -->
<th style="width: 15%" class="text-right"><p style="font-size: 8pt">{{ _("Amount") }}</p></th>
</tr>
</thead>
<tbody class="black-border">
{% for n in doc.items %}
<tr>
<td>{{ loop.index }}</td>
<td><b>{{ _(n.item_name) }}</b><br>
<p style="font-size: 9pt">{{ _(n.description) }}
{% if n.additional_notes %}
<p style="font-size: 9pt"><b>{{ _("Note") }}:</b> {{ _(n.additional_notes) }}</p></td>
{% endif %}
<td><p style="font-size: 8pt">{{ _(n.uom) if not print_settings.print_uom_after_quantity else ' '}}</p></th></td>
<td>
<p style="text-align: right">{{ n.get_formatted("qty") }}</p>
{% if print_settings.print_uom_after_quantity %}
<p style="text-align: right">{{ _(n.uom) }}</p>
{% endif %}
</td>
<td><p style="text-align: right">{{ n.get_formatted("rate") }}</p></td>
<!-- <td><p style="text-align: right">{{ n.get_formatted("discount_amount") }}</p></td> -->
<td class="text-right"><p style="text-align: right">{{ n.get_formatted("amount") }}</p></td>
{% if n.page_break %}
<div class="page-break"></div>
{% endif %}
</tr>
{% endfor %}
</tbody>
Hope someone has a idea.