{% extends 'admin/base.html' %} {% load i18n widget_tweaks %} {% block content %} {{ block.super }}

{% trans 'History' %} | {{ product.name }} ({% trans 'Created' %}: {{ product.created|date:'d.m.Y' }})

{{ form.errors }}
{{ form.date_from|add_class:'form-control'|attr:'autocomplete:off' }}
{{ form.date_to|add_class:'form-control'|attr:'autocomplete:off' }}
{% include 'invoices/history.html' %}

{% trans 'History' %}

{% for item in all_items %} {% endfor %}
{% trans 'Action' %} {% trans 'Date' %} {% trans 'Quantity' %} {% trans 'Price' %} {% trans 'Subtotal (Retail)' %}
{{ item.invoice.get_type_display }} {{ item.invoice.created }} {{ item.qty }} {{ item.price_with_discount|stringformat:".2f" }} {{ item.subtotal_with_discount|stringformat:".2f" }}
{% endblock %} {% block js %} {{ block.super }} {% endblock %}