{% extends "base.html" %} {% set plural = 'Purchases' if kind == 'purchase' else 'Sales' %} {% block title %}{{ plural }}{% endblock %} {% block content %}
| No. | Date | {{ label }} | Warehouse | By | Units | Total ({{ currency }}) | {% if kind == 'sale' %}{% endif %} |
|---|---|---|---|---|---|---|---|
| {{ 'PUR' if kind == 'purchase' else 'SALE' }}-{{ d.id }} | {{ d.created_at[:16] }} | {{ d.party }} | {{ d.warehouse }} | {{ d.username or '' }} | {{ d.units }} | {{ d.total|money }} | {% if kind == 'sale' %}Invoice | {% endif %}
| No {{ plural.lower() }} recorded yet. | |||||||