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

{% trans 'Car Purchase Report' %}

{{ dealer }}

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

{% trans 'Filters' %}

{% trans 'Report Summary' %}

{% trans 'Total Purchase Amount' %}

{{ total_po_amount|floatformat:'2g' }}

{% 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 'Cars Purchased' %} {% trans 'Vendor' %}
{{ po.po_number }} {{ po.po_created|date }} {{ po.po_status }} {{ po.po_amount|floatformat:'g' }} {% if po.po_fulfilled_date %} {{ po.po_fulfilled_date }} {% else %} {% trans 'Not fulfilled' %} {% endif %} {{ po.po_quantity }} {{ po.vendors_str }}
{% endblock %}