{% extends 'base.html' %} {% load i18n %} {% load static %} {% block title %} {{ _("Car Purchase Report") |capfirst }} {% endblock title %} {% block content%}

{% trans 'Car Purchase Report' %}

{{dealer}}

{% trans "Report Date" %}: {{current_time}}

{% trans 'Report Summary' %}

{% trans 'Total Purchase Amount' %}

{{total_po_amount}}

{% trans 'Total Cars Purchased' %}

{{total_po_cars}}

{% trans 'Total Purchase Orders' %}

{{data|length}}

{% trans 'Detailed Purchase List' %}

{% for po in data %} {% endfor %}
{% trans 'Purchase ID' %} {% trans 'Date Created' %} {% trans 'Status' %} {% trans 'PO Amount' %} {% trans 'Date Fulfilled' %} {% trans 'Created By' %} {% trans 'Cars Purchased' %} {% trans 'Vendor' %}
{{po.po_number}} {{po.po_created|date}} {{po.po_status}} {{po.po_amount}} {% if po.po_fulfilled_date%} {{po.po_fulfilled_date}} {%else%} {% trans 'Not fulfilled'%} {% endif %} {% firstof po.created_by.get_full_name 'staff' %} {{po.po_quantity}} {{po.vendors_str}}
{% endblock %}