{% extends 'base/base.html' %} {% load static %} {% block title %}Bulk Submit Bills - {{ block.super }}{% endblock %} {% block css %} {% endblock %} {% block content %}

{{ total_draft_bills }}

Total Draft Bills

{{ submittable_bills }}

Ready to Submit

{{ total_draft_bills|add:"-"|add:submittable_bills }}

Need Attention

0

Selected Bills

Submitting bills, please wait...
Submission Results
{% if bills_with_status %}
{% for item in bills_with_status %} {% endfor %}
Bill Number Patient Bill Date Total Amount Status Validation Actions
{% if item.can_submit %} {% else %} {% endif %} {{ item.bill.bill_number }} {% if item.bill.patient %} {{ item.bill.patient.get_full_name }} {% else %} No patient assigned {% endif %} {% if item.bill.bill_date %} {{ item.bill.bill_date|date:"M d, Y" }} {% else %} No date {% endif %} {% if item.bill.total_amount %} ${{ item.bill.total_amount|floatformat:2 }} {% else %} $0.00 {% endif %} {{ item.bill.get_status_display }} {% if item.can_submit %} Valid {% else %} Issues
{% for error in item.validation_errors %} • {{ error }}
{% endfor %}
{% endif %}
{% else %}
No Draft Bills Found

There are no draft bills available for submission.

Create New Bill
{% endif %}
{% endblock %} {% block js %} {% endblock %}