{% extends "base.html" %} {% block title %}Składki Członkowskie - Norda Biznes Partner{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
| {% endif %} | Firma | {% if month %}Status | Kwota | Zapłacono | Data płatności | Akcje | {% else %}Stawka | I | II | III | IV | V | VI | VII | VIII | IX | X | XI | XII | Zaległ. z lat poprz. |
{% endif %} | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Firmy bez danych o składkach | ||||||||||||||||||||||
| ↳ {{ cf.company.name }} firma córka | 0 zł | {% for m in range(1, 13) %}{% set parent_fee = cf.parent_months.get(m) %} - | {% endfor %}— | |||||||||||||||||||
| {% if cf.fee %} {% endif %} | {{ cf.company.name }} | {% if cf.status == 'paid' %}Opłacone {% elif cf.status == 'pending' %}Oczekuje {% elif cf.status == 'overdue' %}Zaległe {% elif cf.status == 'partial' %}Częściowe {% else %}Brak {% endif %} | {% if cf.fee %}{{ cf.fee.amount }} zł{% else %}-{% endif %} | {% if cf.fee and cf.fee.amount_paid %}{{ cf.fee.amount_paid }} zł{% else %}-{% endif %} | {% if cf.fee and cf.fee.payment_date %}{{ cf.fee.payment_date }}{% else %}-{% endif %} | {% if cf.fee and cf.status != 'paid' %} {% elif not cf.fee %} Brak rekordu {% endif %} | {% else %} {# Yearly view — normal/parent company #}
{{ cf.company.name }}
{% if cf.child_count > 0 %}
{{ cf.child_count }} {{ 'marka' if cf.child_count == 1 else ('marki' if cf.child_count <= 4 else 'marek') }} zależnych
{% for ch in cf.child_brands|sort(attribute='name') %}
{{ ch.name }} (od {{ ch.created_at.strftime('%m/%Y') if ch.created_at else '?' }})
{% endfor %}
|
{% if cf.child_count > 0 %}
{% set rate_change_month = cf.rate_change_month %}
{% if rate_change_month and rate_change_month > 1 %}
I-{{ ['','I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII'][rate_change_month - 1] }}: 200 zł
{% else %}
300 zł
{% endif %}
{% else %}
200 zł
{% endif %}
od {{ ['','I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII'][rate_change_month] }}: 300 zł |
{% for m in range(1, 13) %}
{% set fee = cf.months.get(m) %} {% set expected = cf.expected_fees.get(m, 200) %} {% set underpaid = fee and fee.amount and fee.amount|int < expected %} {% set is_premium = fee and fee.status == 'paid' and expected >= 300 and fee.amount|int >= 300 %} {% if fee %} {{ m }}{% if fee.status == 'partial' %}{{ fee.amount_paid|int }}{% endif %}{% if underpaid %}!{% endif %} {% else %} - {% endif %} | {% endfor %}{% set debt = cf.company.previous_years_debt|default(0)|float %} {% if debt > 0 %} {{ debt|int }} zł {% else %} + wpisz {% endif %} | {% if cf.reminder %} {% if cf.reminder.is_read %} ✓ {% else %} ✉ {% endif %} {% endif %} | {% if cf.has_data and cf.months.values()|selectattr('status', 'in', ['pending', 'partial', 'overdue'])|list %} {% endif %} | {% endif %}||||||||||