{# templates/reports/fifo_expiry_report.html #} {% extends "pos/base.html" %} {% load static %} {% block title %}{{ title }}{% endblock %} {% block heading %}{{ title }}{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
Excel
{# Summary pills #}
Total: {{ summary.total }} Expired: {{ summary.expired }} Short (≤{{ short_threshold }}d): {{ summary.short }} OK: {{ summary.ok }}
{# Table #}
{% for col in columns %} {% endfor %} {% if render_rows %} {% for r in render_rows %} {% for cell in r.cells %} {% endfor %} {% endfor %} {% else %} {% endif %} {% for cell in totals_render %} {% endfor %}
{{ col.label }}
{% if forloop.counter == 8 %} {% if cell.value == 'Expired' %}{{ cell.value }} {% elif cell.value == 'Short' %}{{ cell.value }} {% else %}{{ cell.value }}{% endif %} {% else %} {% if 'text-end' in cell.class %}{{ cell.value|floatformat:2 }}{% else %}{{ cell.value }}{% endif %} {% endif %}
No batch/expiry data found in FIFO layers for the selected filters.
{% if 'text-end' in cell.class %}{{ cell.value|floatformat:2 }}{% else %}{{ cell.value }}{% endif %}
{# PDF Modal #} {# ── Thermal Grouping Modal ───────────────────────────────────────────────── #} {# ── Hidden JSON data for thermal ────────────────────────────────────────── #} {# Column order: 0=idx, 1=prod_code, 2=prod_name, 3=company, 4=batch, 5=expiry_date, 6=days_to_exp, 7=status, 8=qty #} {% endblock %} {% block javascripts %} {% endblock %}