новые реквизиты и печать для xls документов

remotes/origin/yandex
apache 9 years ago
parent 5ea958a77d
commit 54df6c04de
  1. 8
      project/customer/views/docs.py
  2. BIN
      project/templates/xls/4pd.xls
  3. BIN
      project/templates/xls/act.xls
  4. BIN
      project/templates/xls/bill.xls
  5. BIN
      project/templates/xls/stamp.bmp

@ -60,7 +60,7 @@ def get_doc(request, order_num=None):
ws.write(11, 0, u"СЧЕТ № %s от %s" % (order_num, license.order_date.strftime('%d.%m.%Y')), style0_center)
ws.write(13, 0, u"Покупатель: %s" % data.name, style1)
ws.write(16, 2, u"Использование сервиса Dokumentor сроком %s" % (license.get_term()), style3)
ws.write(16, 2, u"Лицензия Dokumentor.ru на %s" % (license.get_term()), style3)
style3.num_format_str = "#,##0.00"
@ -71,7 +71,7 @@ def get_doc(request, order_num=None):
ws.write(21, 0, u"Всего наименование 1, на сумму %s,00 руб." % license.pay_sum, style1)
ws.write(23, 0, u"%s." % rubles(license.pay_sum).capitalize(), style2)
ws.insert_bitmap(os.path.join(XLS_ROOT, 'stamp.bmp'), 25, 12, y=3, scale_x=1, scale_y=1.1)
ws.insert_bitmap(os.path.join(XLS_ROOT, 'stamp.bmp'), 26, 12, y=3, scale_y=1.1)
elif pm == 2: # заполняем квитанцию
style0 = easyxf('font: name Times New Roman, height 160, bold True;'
@ -83,13 +83,13 @@ def get_doc(request, order_num=None):
)
# заполняем оригинал
ws.write(11, 4, u"Использование сервиса Dokumentor сроком %s" % (license.get_term()), style1)
ws.write(11, 4, u"Лицензия Dokumentor.ru на %s" % (license.get_term()), style1)
ws.write(13, 13, data.get_boss_fio(), style0)
ws.write(14, 13, re.sub("^\s+|\n|\r|\s+$", ' ', data.address), style0)
ws.write(15, 11, license.pay_sum, style1)
# заполняем копию
ws.write(31, 4, u"Использование сервиса Dokumentor сроком %s" % (license.get_term()), style1)
ws.write(31, 4, u"Лицензия Dokumentor.ru на %s" % (license.get_term()), style1)
ws.write(33, 13, data.get_boss_fio(), style0)
ws.write(34, 13, re.sub("^\s+|\n|\r|\s+$", ' ', data.address), style0)
ws.write(35, 11, license.pay_sum, style1)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Loading…
Cancel
Save