{# -*- mode: web; -*- #} {% extends "base.html" %} {% block title %} Invoices {% endblock %} {% block actions %}
  • Add invoice
  • {% endblock %} {% block content %} Track your invoices and create new ones here.
    {# Pagination Links #} {# gotten from https://betterprogramming.pub/simple-flask-pagination-example-4190b12c2e2e #}
    {# Loop through the number of pages to display a link for each #} {% for page_num in invoices.iter_pages(left_edge=1, right_edge=1, left_current=1, right_current=2) %} {% if page_num %} {# Check for the active page and set the link to "Active" #} {% if invoices.page == page_num %} {{ page_num }} {% else %} {{ page_num }} {% endif %} {% else %} ... {% endif %} {% endfor %}
    {% for invoice in invoices.items %} {% endfor %}
    ID Created Alternative Invoice ID Customer Name Customer Reference Date Billed Date Due Amount (Net €) Amount (Gross €) Tax Amount (€)
    {{ invoice.primary_key }} {{ invoice.date_time_created }} {{ invoice.invoice_id_alt }} {{ invoice.customer.name }} {{ invoice.customer_reference }} {{ invoice.date_billed }} {{ invoice.date_due }} {{ invoice.amount_net }} {{ invoice.amount_gross }} {{ invoice.amount_tax }}
    {% endblock %}