Produkty: {{ purchased_count }}/{{ total_count }} ({{ percent|round(0)|int }}%)
{% if total_expense > 0 %} — 💸 {{ '%.2f'|format(total_expense) }} PLN{% endif %}
{% set total_count = total_count or 0 %} {% set purchased_count = purchased_count or 0 %} {% set not_purchased_count = not_purchased_count or 0 %} {% set accounted_count = purchased_count + not_purchased_count %} {% set remaining_count = (total_count - accounted_count) if total_count > accounted_count else 0 %} {% set percent = ((purchased_count / total_count) * 100) if total_count > 0 else 0 %} {% set purchased_percent = ((purchased_count / total_count) * 100) if total_count > 0 else 0 %} {% set not_purchased_percent = ((not_purchased_count / total_count) * 100) if total_count > 0 else 0 %} {% set remaining_percent = ((remaining_count / total_count) * 100) if total_count > 0 else 0 %}