{% load mathfilters humanize %}

{{ bill_info.project }}

{{ bill_info.zipcode }} {{ bill_info.address1 }} {{ bill_info.address2 }} {{ bill_info.address3 }} Tel. {{ bill_info.host_tel }}
문서 번호 : {{ pub_date|date:"Y-m-d" }}
수       신 : {{ data.contract.contractor.name }} 님
참       조 :
제       목 : {{ bill_info.title }}
{{ bill_info.content|linebreaks }}
■ 계약 내용
계약자명 계 약 일 {% if data.unit %}동 호수{% else %}계약 번호{% endif %} 평형(TYPE) 총 공급가액
{{ data.cont_content.contractor }} {{ data.cont_content.cont_date }} {{ data.cont_content.cont_no }} {{ data.cont_content.cont_type }} {% if not data.no_price %}{{ data.price|intcomma }}{% else %}추후 지정 고지{% endif %}
■ 납부대금 안내 [{{ pub_date|date:"Y-m-d" }} 현재]
{% for this_order in data.this_pay_info %} {% endfor %}
납부 회차 납부 기한 약정 금액 미납 금액 연체료 합계 납부 금액
{{ this_order.order }} {{ this_order.due_date|default:"" }} {{ this_order.amount|default:"-"|intcomma }} {{ this_order.unpaid|default:"-"|intcomma }} - {{ this_order.sum_amount|default:"-"|intcomma }}
합 계 {{ data.this_pay_sum.amount_sum|default:"-"|intcomma }} {{ data.this_pay_sum.unpaid_sum|default:"-"|intcomma }} {% if not data.no_late %}{{ data.late_fee_sum|default:"-"|intcomma }}{% else %}-{% endif %} {% if not data.no_late %} {{ data.this_pay_sum.amount_total|add:data.late_fee_sum|default:"-"|intcomma }} {% else %} {{ data.this_pay_sum.amount_total|default:"-"|intcomma }} {% endif %}
■ 납부방법 안내
{% if data.pay_method.1 %} {% endif %} {% if data.pay_method.1 %} {% endif %}
구 분 개설은행명 계 좌 번 호 예 금 주 입금하실 금액
분 양 대 금 {{ bill_info.bank_account1 }} {{ bill_info.bank_number1 }} {{ bill_info.bank_host1 }} {% if not data.no_late %} {{ data.pay_method.0|add:data.late_fee_sum|default:"-"|intcomma }} {% else %} {{ data.pay_method.0|default:"-"|intcomma }} {% endif %}
{{ 'PM 용역비' }} {{ bill_info.bank_account2 }} {{ bill_info.bank_number2 }} {{ bill_info.bank_host2 }} {{ data.pay_method.1|default:"-"|intcomma }}
※ 계좌 입금 시 반드시 계약자명과 상기 {% if data.unit %}동 호수{% else %}계약번호{% endif %}를 병행 표기하여 납부하여 주시기 바랍니다.
    예) 홍길동{% if data.unit %}{{ data.contract.keyunit.houseunit }}{% else %} {{ data.contract.serial_number|truncatechars:7 }}{% endif %}
합 계 {{ data.pay_method.0|add:data.pay_method.1|default:"-"|intcomma }}
■ 납부약정 및 납입내역 [{{ pub_date|date:"Y-m-d" }} 현재]
{% for paid_order in data.due_orders %} {% endfor %} {% for i in data.blank_line %} {% endfor %} {% for rem_order in data.remain_orders %} {% endfor %}
구 분 약 정 사 항 수 납 사 항 비고
납부기한 금 액 실 수납금액 선납연체(할인가산)
일자 금액 적용 금액 일수 할인(-)/가산금
{{ paid_order.order }} {{ paid_order.due_date|date:"Y-m-d" }} {{ paid_order.amount|intcomma }} {{ paid_order.paid_date|date:"Y-m-d" }} {{ paid_order.paid_amt|default:"-"|intcomma }} {% if not data.no_late %}{{ paid_order.unpaid_amt|default:"-"|intcomma }}{% endif %} {% if not data.no_late %}{{ paid_order.unpaid_days|default:"-"|intcomma }}{% endif %} {% if not data.no_late %}{{ paid_order.unpaid_result|default:"-"|intcomma }}{% endif %} {% if not data.no_late %}{% endif %}
 
{{ rem_order.order }} {{ rem_order.due_date|date:"Y-m-d" }} {% if not data.no_price %}{{ rem_order.amount|intcomma }}{% endif %} {% if not data.no_late %} {% if forloop.last and data.late_fee_sum %} ※ 지연 납부 시 당일 가산금을 확인(T. {{ bill_info.agency_tel|default:bill_info.host_tel }}) 후 납부하여 주시기 바랍니다. {% endif %} {% endif %}
합 계 {% if not data.no_price %}{{ data.price|intcomma }}{% else %}-{% endif %} {{ data.paid_sum_total|default:"-"|intcomma }} {% if not data.no_late %}{{ 0|default:"-"|intcomma }}{% else %}-{% endif %} {% if not data.no_late %}{{ 0|default:"-"|intcomma }}{% else %}-{% endif %} {% if not data.no_late %}{{ data.late_fee_sum|default:"-"|intcomma }}{% else %}-{% endif %}
{% if bill_info.agency %} {% endif %}
{% if not data.unit %}※ 총 공급가액 및 전체 약정금액은 동호 지정 이후 고지됩니다.{% endif %} {% if not data.contract.sup_cont_date %}※ 미 도래 납부회차의 납부기한 및 약정금액은 예정사항이며 추후 변동 시 변경고지될 수 있습니다.{% endif %}
업무대행사 {{ bill_info.agency }}문의전화 : {{ bill_info.agency_tel|default:bill_info.host_tel }} {{ bill_info.host_name }}