You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
261 lines
9.9 KiB
261 lines
9.9 KiB
{% load my_tags pytils_numeral pytils_dt %}
|
|
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
<style type="text/css">
|
|
@page { size: a4 portrait; margin: 1.5cm; }
|
|
@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: 120%; }
|
|
|
|
table { border-collapse: collapse; padding-top: 0.3ex; line-height: 120%; -pdf-keep-in-frame-mode: truncate; /*shrink*/ }
|
|
table tr { padding-left: 0.3ex; padding-right: 0.3ex; }
|
|
table tr td { vertical-align: middle; }
|
|
table .row { text-align: right; }
|
|
|
|
.center { text-align: center; }
|
|
.left { text-align: left; }
|
|
.right { text-align: right; }
|
|
.top { vertical-align: top; }
|
|
.bottom { vertical-align: bottom; }
|
|
.bold { font-weight: bold; }
|
|
|
|
.font_6 { font-size: 6pt; }
|
|
.font_7 { font-size: 7pt; }
|
|
.font_8 { font-size: 8pt; }
|
|
.font_9 { font-size: 9pt; }
|
|
.font_10 { font-size: 10pt; }
|
|
.font_12 { font-size: 12pt; }
|
|
.font_14 { font-size: 14pt; }
|
|
|
|
.borders { border-style: solid; border-width: 1px; border-color: black; }
|
|
.top_border { border-top-style: solid; border-top-width: 1px; border-top-color: black; }
|
|
.top_border_2 { border-top-style: solid; border-top-width: 2px; border-top-color: black; }
|
|
.bottom_border { border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: black; }
|
|
.bottom_border_2 { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: black; }
|
|
.left_border { border-left-style: solid; border-left-width: 1px; border-left-color: black; }
|
|
.left_border_2 { border-left-style: solid; border-left-width: 2px; border-left-color: black; }
|
|
.right_border { border-right-style: solid; border-right-width: 1px; border-right-color: black; }
|
|
.right_border_2 { border-right-style: solid; border-right-width: 2px; border-right-color: black; }
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<div>
|
|
<table width="100%" class="borders font_8 center">
|
|
<tr>
|
|
<th width="12%">Номер<br />доверен-<br />ности</th>
|
|
<th width="12%">Дата<br />выдачи</th>
|
|
<th width="12%">Срок<br />действия</th>
|
|
<th width="43%">Должность и фамилия лица,<br />которому выдана доверенность</th>
|
|
<th width="21%">Расписка в получении<br />доверенности</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>1</td>
|
|
<td>2</td>
|
|
<td>3</td>
|
|
<td>4</td>
|
|
<td>5</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{ obj.doc_num }}</td>
|
|
<td>{{ obj.doc_date|date:"d.m.Y" }}</td>
|
|
<td>{{ obj.doc_expire_date|date:"d.m.Y" }}</td>
|
|
<td class="left top">{{ obj.dover_name|safe }}</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" class="borders font_8 center">
|
|
<tr>
|
|
<th width="40%">Поставщик</th>
|
|
<th width="39%">Номер и дата наряда<br />(заменяющего наряд<br />документа) или извещения</th>
|
|
<th width="21%">Номер, дата документа,<br />подтверждающего<br />выполнение поручения</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>6</th>
|
|
<th>7</th>
|
|
<th>8</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="left top">{{ obj.client.name|safe }}</td>
|
|
<td class="left top">{{ obj.dover_doc|safe }}</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" class="font_8 center">
|
|
<tr class="bottom_border_2"><td> </td></tr>
|
|
<tr class="bottom_border"><td>линия отреза</td></tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="margin-top: 0.5ex;">
|
|
<table width="100%" class="right font_6">
|
|
<tr>
|
|
<td>
|
|
Типовая межотраслевая форма № М-2<br />
|
|
Утверждена постановлением Госкомстата России от 30.10.97 № 71а
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" class="font_8 center">
|
|
<tr>
|
|
<td width="90%" class="right"></td>
|
|
<td width="10%" class="borders">Коды</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="right">Форма по ОКУД</td>
|
|
<td class="bottom_border top_border_2 left_border_2 right_border_2">315001</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="right">по ОКПО</td>
|
|
<td class="bottom_border_2 left_border_2 right_border_2"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div>
|
|
<table width="100%" class="font_9">
|
|
<tr>
|
|
<td width="14%" class="top">Организация</td>
|
|
<td width="86%" class="bold top bottom_border">
|
|
{{ profile.get_company_name|safe }} , ИНН {{ profile.get_inn_and_kpp }} , {{ profile.address|safe }}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="margin-top: 0.75ex; margin-bottom: 0.75ex;">
|
|
<table width="100%" class="font_9 left">
|
|
<tr width="100%" class="center font_14 bold">
|
|
<td>Доверенность № {{ obj.doc_num }}</td>
|
|
</tr>
|
|
|
|
<tr style="padding-top: 0">
|
|
<td>
|
|
Дата выдачи {{ obj.doc_date|ru_strftime:"%d %B %Y" }} г.<br />
|
|
Доверенность действительна по {{ obj.doc_expire_date|ru_strftime:"%d %B %Y" }} г.
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="bottom_border bottom">
|
|
<td>
|
|
{{ profile.get_company_name|safe }} , ИНН {{ profile.get_inn_and_kpp }} , {{ profile.address|safe }}
|
|
</td>
|
|
</tr>
|
|
<tr class="font_7 top center"><td>наименование потребителя и его адрес</td></tr>
|
|
|
|
<tr class="bottom_border bottom">
|
|
<td>
|
|
{{ profile.get_company_name|safe }} , ИНН {{ profile.get_inn_and_kpp }} , {{ profile.address|safe }}
|
|
</td>
|
|
</tr>
|
|
<tr class="font_7 top center"><td>наименование плательщика и его адрес</td></tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Счет № {{ main_account.account }} в {{ main_account.name|safe }} ,
|
|
БИК {{ main_account.bik }} , корр.сч. {{ main_account.korr_account }}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
Доверенность выдана: {{ obj.dover_name|safe }}<br />
|
|
Паспорт: {{ obj.dover_passport_ser }} {{ obj.dover_passport_num }}<br />
|
|
Кем выдан: {{ obj.dover_passport_org|safe }}<br />
|
|
Дата выдачи: {{ obj.dover_passport_date|date:"d.m.Y" }}<br />
|
|
На получение от {{ obj.client.name|safe }}<br />
|
|
материальных ценностей по {{ obj.dover_doc|safe }} от {{ obj.dover_doc_date|ru_strftime:"%d %B %Y" }} г.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div>
|
|
<table width="100%" class="font_10 bold center">
|
|
<tr>
|
|
<td width="100%">ПЕРЕЧЕНЬ ТОВАРНО-МАТЕРИАЛЬНЫХ ЦЕННОСТЕЙ, ПОДЛЕЖАЩИХ ПОЛУЧЕНИЮ</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div>
|
|
<table repeat="1" width="100%" class="font_8">
|
|
<tr class="borders font_9">
|
|
<th width="5%">№ п/п</th>
|
|
<th width="57%">Наименование</th>
|
|
<th width="15%">Ед. изм.</th>
|
|
<th width="23%">Количество (прописью)</th>
|
|
</tr>
|
|
|
|
{% for item in obj_items %}
|
|
<tr class="right borders">
|
|
<td class="center">{{ forloop.counter }}</td>
|
|
<td class="left">{{ item.name|safe }}</td>
|
|
<td class="center">{{ item.units|safe }}</td>
|
|
<td>{{ item.qty|in_words }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
<div style="margin-top: 3ex;">
|
|
<table class="font_9">
|
|
<tr>
|
|
<td width="37%">Подпись лица, получившего доверенность</td>
|
|
<td width="47%" class="bottom_border"></td>
|
|
<td width="16%">удостоверяем.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="font_9" style="margin-top: 3ex;">
|
|
<tr>
|
|
<td width="25%">Руководитель предприятия</td>
|
|
<td width="35%" class="bottom_border"></td>
|
|
<td width="40%">({{ profile.get_boss_fio }})</td> {# фио руководителя #}
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="font_12 center" style="margin-top: 1ex;">
|
|
<tr>
|
|
<td class="left">М. П.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{# подпись главбуха: 1) всегда для организации, 2) для ИП - если задана #}
|
|
|
|
{% if profile.is_ip and profile.get_glavbuh_fio %} {# ИП #}
|
|
<table class="font_9" style="margin-top: 1ex;">
|
|
<tr>
|
|
<td width="25%">Главный бухгалтер</td>
|
|
<td width="35%" class="bottom_border"></td>
|
|
<td width="40%">({{ profile.get_glavbuh_fio }})</td> {# фио главбуха #}
|
|
</tr>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if profile.is_org %} {# Орг #}
|
|
<table class="font_9" style="margin-top: 1ex;">
|
|
<tr>
|
|
<td width="25%">Главный бухгалтер</td>
|
|
<td width="35%" class="bottom_border"></td>
|
|
<td width="40%">({{ profile.get_glavbuh_fio|default:profile.get_boss_fio }})</td> {# фио главбуха #}
|
|
</tr>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{# --------------------------------------------------------------------- #}
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|