diff --git a/src/dokumentor/templates/docs/aktsverki/as_pdf.html b/src/dokumentor/templates/docs/aktsverki/as_pdf.html index 83c758a..e41b68d 100644 --- a/src/dokumentor/templates/docs/aktsverki/as_pdf.html +++ b/src/dokumentor/templates/docs/aktsverki/as_pdf.html @@ -9,11 +9,21 @@ @font-face { font-family: Arial; src: url("{% fonts_root %}arial.ttf"); } @font-face { font-family: Arial; src: url("{% fonts_root %}arialbd.ttf"); font-weight: bold; } - body { font-family: Arial; font-size: 9pt; line-height: 140%; } - - table { border-collapse: collapse; padding-top: 0.5ex; line-height: 140%; } - table tr { padding-left: 0.5ex; padding-right: 0.5ex; } - table tr td { vertical-align: middle; } + body { font-family: Arial, sans-serif; font-size: 9pt; line-height: 140%; } + + table { + width: 100%; + border-collapse: collapse; + padding-top: 0.5ex; + line-height: 140%; + } + tr { + padding-left: 0.5ex; + padding-right: 0.5ex; + } + td { + vertical-align: middle; + } table .row { text-align: right; } #header { text-align: center; font-weight: bold; font-size: 14pt; } @@ -67,8 +77,8 @@
- - + + @@ -83,38 +93,38 @@ - - - - - - - - + + + + + + + + {% for item in obj_items %} - - - - - - - - + + + + + + + + {% endfor %} - - - - - - - - + + + + + + + +
По данным «{{ profile.get_company_name|safe }}», руб.По данным «{{ obj.client.name|safe }}», руб.По данным «{{ profile.get_company_name|safe }}», руб.По данным «{{ obj.client.name|safe }}», руб.
1Сальдо на {{ obj.start_date|date:"d.m.Y" }}{% if obj.saldo_debit %}{{ obj.saldo_debit }}{% endif %}{% if obj.saldo_credit %}{{ obj.saldo_credit|floatformat:2 }}{% endif %}1Сальдо на {{ obj.start_date|date:"d.m.Y" }}{% if obj.saldo_debit %}{{ obj.saldo_debit }}{% endif %}{% if obj.saldo_credit %}{{ obj.saldo_credit|floatformat:2 }}{% endif %}
{{ forloop.counter|add:"1" }}{{ item.name|safe }}{% if item.debit %}{{ item.debit|floatformat:2 }}{% endif %}{% if item.credit %}{{ item.credit|floatformat:2 }}{% endif %}{{ forloop.counter|add:"1" }}{{ item.name|safe }}{% if item.debit %}{{ item.debit|floatformat:2 }}{% endif %}{% if item.credit %}{{ item.credit|floatformat:2 }}{% endif %}
{{ obj_items|length|add:"2" }}Сальдо на {{ obj.end_date|date:"d.m.Y" }}{% if obj.sum_debit %}{{ obj.sum_debit|floatformat:2 }}{% endif %}{% if obj.sum_credit %}{{ obj.sum_credit|floatformat:2 }}{% endif %}{{ obj_items|length|add:"2" }}Сальдо на {{ obj.end_date|date:"d.m.Y" }}{% if obj.sum_debit %}{{ obj.sum_debit|floatformat:2 }}{% endif %}{% if obj.sum_credit %}{{ obj.sum_credit|floatformat:2 }}{% endif %}
@@ -122,7 +132,7 @@
- +
По данным «{{ profile.get_company_name|safe }}»
@@ -150,7 +160,7 @@
- +
@@ -170,14 +180,14 @@ - + - +
От «{{ profile.get_company_name|safe }}» ({{ profile.get_boss_fio }}) {# место для подписи #}({{ obj.client.contact_name }})({{ obj.client.contact_name }})
{# пустая строка #}
М. П. М. П.
diff --git a/src/dokumentor/templates/docs/faktura/as_pdf.html b/src/dokumentor/templates/docs/faktura/as_pdf.html index 8348003..8d51a64 100644 --- a/src/dokumentor/templates/docs/faktura/as_pdf.html +++ b/src/dokumentor/templates/docs/faktura/as_pdf.html @@ -38,7 +38,6 @@ padding-right: 0.3ex; } td { -{# border: 1px solid red;#} vertical-align: middle; }