{% for project in projects %} {% with billing_detail=project.projectbillingdetails %}
{% if billing_detail.project_name and billing_detail.project_name != billing_detail.project.name %}
{{ billing_detail.project_name }}
{% endif %} {% if billing_detail.expires_on %}
{{ billing_detail.expires_on|date }}
{% endif %} {% if rate_categories %}
{{ billing_detail.category }}
{% endif %}
{{ billing_detail.contact_name|default_if_none:'' }}
{{ billing_detail.contact_email|join:', ' }}
{{ billing_detail.contact_phone|default_if_none:'' }}
{% if billing_detail.no_charge %}
Invoices will NOT be created for this project
{% endif %} {% if billing_detail.no_tax %}
This project is tax exempt
{% endif %}
{{ billing_detail.addressee|default_if_none:''|linebreaksbr }}
{% if billing_detail.comments %}
{{ billing_detail.comments|linebreaksbr }}
{% endif %}
{% endwith %} {% endfor %}