Dmitriy Shesterkin 9 years ago
parent a93a2a4e7a
commit a7d2afc48c
  1. 4
      src/commons/templatetags/my_tags.py
  2. 4
      templates/docs/nakladn/as_pdf.html

@ -85,7 +85,7 @@ def rub_in_parts(string, part):
result = string[:rub - 1]
else:
result = string
if len(result) >= 50:
words = result.split(' ')
len_string = 0
@ -101,8 +101,6 @@ def rub_in_parts(string, part):
s = second_part
else:
s = result
else:
s = result
return s

@ -539,9 +539,9 @@
<td colspan="9" class="center font_7 top">(кем, кому (организация, должность, фамилия, и., о.))</td>
</tr>
<tr>
<td colspan="5" class="bottom_border center"> {{ obj.sum_full_total_price|to_float|rubles|rub_in_parts:2 }} </td>
<td colspan="5" class="bottom_border"> {{ obj.sum_full_total_price|to_float|rubles|rub_in_parts:2 }} </td>
<td>руб.</td>
<td colspan="3" class="bottom_border">{{ obj.sum_full_total_price|to_float|only_kopeck }}</td>
<td colspan="3" class="center bottom_border">{{ obj.sum_full_total_price|to_float|only_kopeck }}</td>
<td width="4%" class="right_border">коп.</td>
{# правая половина #}
<td width="1%"></td>

Loading…
Cancel
Save