{% extends "base-apply.html" %} {% load i18n humanize invoice_tools %} {% block title %}{% trans "Invoice" %}: {{ object.project.title }}{% endblock %} {% block content %} {% display_invoice_status_for_user user object as invoice_status %}
{% trans "Invoice number" %}: {{ object.invoice_number }}
{% is_vendor_setup request as show_vendor_information %}{% trans "Vendor" %}: {% if show_vendor_information %}{{ object.project.vendor.name }}{% else %}{{ object.project.user }}{% endif %}
{% trans "Lead" %}: {{ object.project.lead }}
{% trans "Fund" %}: {{ object.project.submission.page }}
{% trans "Status" %}:
{{ latest_activity_status }} {% if user.is_applicant and latest_activity.user != user %} ({{ ORG_SHORT_NAME }}){% else %}({{ latest_activity.user }}){% endif %} {{ latest_activity.timestamp }} {% if latest_activity_comment %} View comment {% endif %}
{% for activity in activities %} {% extract_status activity user as activity_status %} {% get_comment_for_invoice_action object activity as activity_comment %}{{ activity_status }} {% if user.is_applicant and activity.user != user %} ({{ ORG_SHORT_NAME }}){% else %}({{ activity.user }}){% endif %} {{ activity.timestamp }} {% if activity_comment %} View comment {% endif %}
{% endfor %}{% trans "View" %}
{% trans "Hide" %}