ITEMS ORDERED
{% include "invoices/invoice_products_table.html" with products=products_first_page %}
{% if not rest_of_products|length %}
{% if products_first_page|length == 4 %}
{% endif %}
{% include "invoices/invoice_summary_table.html" with order=order %}
{% else %}
{% for product_set in rest_of_products %}
{% include "invoices/invoice_products_table.html" with products=product_set %}
{% if forloop.last %}
{% if product_set|length > 11 %}
{% endif %}
{% include "invoices/invoice_summary_table.html" with order=order %}
{% endif %}
{% endfor %}
{% endif %}