您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

88 行
2.3KB

  1. \documentclass[10pt]{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[T1]{fontenc}
  4. \usepackage{lmodern}
  5. %\usepackage[czech]{babel}
  6. \usepackage{a4wide}
  7. \usepackage{tabularx}
  8. \usepackage{graphicx}
  9. \renewcommand{\familydefault}{\sfdefault}
  10. \setlength{\extrarowheight}{3pt}
  11. \begin{document}
  12. \footnotesize
  13. \begin{center}
  14. \begin{tabularx}{\textwidth}{|XXXX|}
  15. \cline{3-4}
  16. \multicolumn{2}{X}{} & \multicolumn{2}{|X|}{} \\
  17. \multicolumn{2}{X}{} & \multicolumn{2}{|l|}{\large Faktura: \hfill {{invoice.number}}} \\
  18. \multicolumn{2}{X}{} & \multicolumn{2}{|X|}{} \\
  19. \hline
  20. & & & \\
  21. \bf Dodavatel: & & \bf Odběratel & \\[1em]
  22. \multicolumn{2}{|l}{\large\bf {{issuer.name}}} & \multicolumn{2}{l|}{\large\bf {{customer.name}}} \\
  23. {{py:
  24. a1 = issuer.address[:]
  25. a2 = customer.address[:]
  26. a1 += (len(a2)-len(a1))*[""]
  27. a2 += (len(a1)-len(a2))*[""]
  28. }}
  29. {{for f1, f2 in zip(a1, a2)}}
  30. \multicolumn{2}{|l}{\large {{f1}}} & \multicolumn{2}{l|}{\large {{f2}}} \\
  31. {{endfor}}
  32. & & & \\
  33. \multicolumn{2}{|l}{IČ: {{issuer.number}}} & \multicolumn{2}{l|}{IČ: {{customer.number}}} \\
  34. & & & \\
  35. {{py:
  36. a1 = issuer.comments[:]
  37. a2 = customer.comments[:]
  38. a1 += (len(a2)-len(a1))*[""]
  39. a2 += (len(a1)-len(a2))*[""]
  40. }}
  41. {{for f1, f2 in zip(a1, a2)}}
  42. \multicolumn{2}{|l}{ {{f1}}} & \multicolumn{2}{l|}{ {{f2}}} \\
  43. {{endfor}}
  44. & & & \\
  45. \hline
  46. & & & \\
  47. \bf Platební podmínky: & & & \\[1em]
  48. \large Forma úhrady: & \large {{"hotově" if invoice.payment=="cash" else "převodem"}} & \large Datum vystavení: & \multicolumn{1}{r|}{\large {{invoice.date.strftime("%d.%m.%Y")}}} \\
  49. \large Číslo účtu: & \large {{issuer.bank_account}} & \multicolumn{2}{l|}{\large\bf Datum splatnosti: \hfill {{invoice.due.strftime("%d.%m.%Y")}}} \\
  50. \large Variabilní symbol: & \large {{invoice.number}} & & \\
  51. {{if invoice.notes}}
  52. & & & \\
  53. \hline
  54. & & & \\
  55. \bf Poznámky: & & & \\[1em]
  56. {{for note in invoice.notes}}
  57. \multicolumn{4}{|l|}{\large {{note}}} \\
  58. {{endfor}}
  59. {{endif}}
  60. & & & \\
  61. \hline
  62. & & & \\
  63. \bf Fakturujeme vám: & & & \\[1em]
  64. {{for item in invoice.items}}
  65. \multicolumn{4}{|l|}{\normalsize {{item[0]}} \hfill {{item[1]}} Kč} \\
  66. {{endfor}}
  67. & & & \\
  68. \hline
  69. & & & \\
  70. \multicolumn{3}{|l}{\large\bf Celkem k úhradě:} & \multicolumn{1}{r|}{\large\bf {{invoice.sum}} Kč} \\
  71. & & & \\
  72. \hline
  73. \multicolumn{4}{r}{} \\
  74. \multicolumn{4}{r}{\includegraphics[scale=1]{../signature.png}\hspace{.4cm} } \\
  75. \end{tabularx}
  76. \end{center}
  77. \end{document}