{% extends "oasis_certs/certs_base_template.html" %}
{% load i18n l10n static_uri sum_dict subtotal_dict %}
{% block more_css %}
{% endblock %}
{% block detail %}
{% subtotal_dict doc_data "location_name" "withholding" "base_withholding" as subtotal_data %}
{{ certificate.body_text }}
{% translate "Name" %}
|
{{ user.get_full_name|truncatechars:45 }}
|
{% translate "Tax Id" %}
|
{{ user.profile.document_id|truncatechars:45 }}
|
{% translate "Address" %}
|
{{ user.profile.address }}
|
{% translate "Phone" %}
|
{{ user.profile.phone }}
|
{% translate "Account Id" %}
|
{% translate "Account Name" %}
|
{% translate "Base Value" %}
|
{% translate "Withholding Value" %}
|
{% for city in subtotal_data %}
{{ city.control }}
|
{% for data in city.data %}
{{ data.account_id }}
|
{{ data.account_name }}
|
{{ data.base_withholding|floatformat:"2g" }}
|
{{ data.withholding|floatformat:"2g" }}
|
{% endfor %}
{% translate "Subtotals" %} - {{ city.control.capitalize }}
|
{{ city.totals.base_withholding|floatformat:"2g" }}
|
{{ city.totals.withholding|floatformat:"2g" }}
|
|
{% endfor %}
{% translate "Totals" %}
|
{% sum_dict doc_data "base_withholding" ",.2f" %}
|
{% sum_dict doc_data "withholding" ",.2f" %}
|
{% endblock %}