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 @@
| По данным «{{ 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 %} | ++ | + | + | |
|
По данным «{{ profile.get_company_name|safe }}» @@ -150,7 +160,7 @@
-
| |||||||||||||||||||