{% extends 'invoices/layout.html' %} {% block body %}
Invoice ID | Customer | Created at | Invoiced at | Nr samples | {% if status=='sent' %}Price | {% endif %}
---|---|---|---|---|---|
{{ invoice.id }} | {{ invoice.customer.internal_id}} - {{ invoice.customer.name }} | {% if invoice.created_at!=None %}{{ invoice.created_at.strftime('%Y-%m-%d') }}{% endif %} | {% if invoice.invoiced_at!=None %} {{ invoice.invoiced_at.strftime('%Y-%m-%d') }} {% endif %} | {% if invoice.microbial_samples %}{{ invoice.microbial_samples|count }}{% else %}{{ invoice.samples|count }}{% endif %} | {% if status=='sent' %}{{ invoice.price }} | {% endif %}