{% load humanize mathfilters %}
{% for og in groups %} {% endfor %} {% for type in types %} {% with cnum=contract_num.pop un=unit_num.pop rn=reserv_num.pop tn=tcn.pop %} {% if forloop.first %} {% endif %} {% for og in groups %} {% endfor %} {% with cr=rn|add:tn %} {% endwith %} {% endwith %} {% endfor %} {% for og in groups %} {% endfor %}
프로젝트명 타입 세대수 청약건수 계약건수 잔여세대 계약율 분양율(청약+계약)
{{ og }}합계
{{ this_project }}{{ type }} {{ un|default:"-"|intcomma }} 세대 {{ rn|default:"-"|intcomma }}{{ cnum.pop|default:"-"|intcomma }}{{ tn|default:"-"|intcomma }} {{ un|sub:tn|sub:rn|default:"-"|intcomma }} {% if tn and un %}{{ tn|div:un|mul:100|floatformat:2|intcomma }}{% else %}-{% endif %} %{% if tn and un %}{{ cr|div:un|mul:100|floatformat:2|intcomma }}{% else %}-{% endif %} %
합계 {{ total_unit_num|default:"-"|intcomma }} 세대 {{ total_reserv_num|default:"-"|intcomma }}{% if ocn %}{{ ocn.pop|default:"-"|intcomma }}{% endif %}{{ total_tcn|default:"-"|intcomma }} {{ total_unit_num|sub:total_tcn|sub:total_reserv_num|default:"-"|intcomma }} {% if total_unit_num > 0 %}{{ total_tcn|div:total_unit_num|mul:100|floatformat:2|default:"-" }} %{% else %}-{% endif %} {% if total_unit_num > 0 %}{{ total_tcn|add:total_reserv_num|div:total_unit_num|mul:100|floatformat:2 }} %{% else %}-{% endif %}