{% extends "base.html" %} {% block title %}Invoices - Vera Medical CMS{% endblock %} {% block content %}

Invoices

Billing and payment management

New Invoice
{% if overdue_count > 0 or uninvoiced_count > 0 %}
{% if overdue_count > 0 %}

{{ overdue_count }} Overdue Invoice(s)

Some invoices are past their due date and require attention.

View Overdue
{% endif %} {% if uninvoiced_count > 0 %}

{{ uninvoiced_count }} Uninvoiced Appointment(s) (30+ days)

Some appointments are 30+ days old and haven't been invoiced yet.

View Uninvoiced
{% endif %}
{% endif %}
{% if search or status_filter %} Clear {% endif %}
{% if invoices %}
{% for invoice in invoices %} {% endfor %}
Invoice # Case & Claimant Service Amount Date Status Actions
{{ invoice['invoice_number'] }}
{% if invoice['file_case_id'] %} Case #{{ invoice['file_case_id'] }} {% else %} No case {% endif %}
{% if invoice['claimant_first_name'] %} {{ invoice['claimant_first_name'] }} {{ invoice['claimant_last_name'] }} {% else %} - {% endif %}
{{ invoice['service_code'] or '-' }}
{{ (invoice['service_description'][:40] + '...') if invoice['service_description'] and invoice['service_description']|length > 40 else (invoice['service_description'] or '-') }}
${{ "%.2f"|format(invoice['total_amount']) }} CAD
${{ "%.2f"|format(invoice['fee']) }} + tax
{{ invoice['invoice_date'] }}
{% if invoice['service_date'] %}
Service: {{ invoice['service_date'] }}
{% endif %}
{% if invoice['status'] == 'paid' %} Paid {% elif invoice['status'] == 'sent' %} Sent {% elif invoice['status'] == 'overdue' %} Overdue {% elif invoice['status'] == 'cancelled' %} Cancelled {% else %} Draft {% endif %}
Showing {{ invoices|length }} invoice(s)
{% else %}

No Invoices Found

{% if search or status_filter %} No invoices match your search criteria. Try adjusting your filters. {% else %} Start creating invoices for your appointments. {% endif %}

{% if not search and not status_filter %} Create First Invoice {% endif %}
{% endif %} {% endblock %}