{% extends "base.html" %} {% set plural = 'Purchases' if kind == 'purchase' else 'Sales' %} {% block title %}{{ plural }}{% endblock %} {% block content %}

{{ plural }}

{{ 'Receive stock' if kind == 'purchase' else 'New sale' }}
{% if kind == 'sale' %}{% endif %} {% for d in rows %} {% if kind == 'sale' %}{% endif %} {% else %} {% endfor %}
No.Date{{ label }}WarehouseByUnits Total ({{ currency }})
{{ 'PUR' if kind == 'purchase' else 'SALE' }}-{{ d.id }}{{ d.created_at[:16] }} {{ d.party }}{{ d.warehouse }}{{ d.username or '' }} {{ d.units }}{{ d.total|money }}Invoice
No {{ plural.lower() }} recorded yet.
{% endblock %}