Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 6 Jahren
vor 6 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. \documentclass[10pt]{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[left=0.5cm,right=0.5cm,top=0.5cm,bottom=0.5cm,noheadfoot,nomarginpar,showframe]{geometry}
  5. \usepackage{lmodern}
  6. \usepackage{tabularx}
  7. \usepackage{tabu}
  8. \usepackage{multirow}
  9. \usepackage{graphicx}
  10. \renewcommand{\familydefault}{\sfdefault}
  11. \setlength{\extrarowheight}{3pt}
  12. \begin{document}
  13. \footnotesize
  14. \pagestyle{empty}
  15. \begin{center}
  16. \begin{tabularx}{\textwidth}{XXXX}
  17. &&& \\
  18. \multicolumn{4}{l}{\bf \large Faktúra: \hfill {{invoice.number}}} \\
  19. &&& \\ \hline
  20. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\
  21. \multicolumn{2}{l|}{\bf Dodávateľ:} & \multicolumn{2}{X}{\bf Odberateľ} \\
  22. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\
  23. \multicolumn{2}{l|}{\large\bf {{issuer.name}}} & \multicolumn{2}{l}{\large\bf {{customer.name}}} \\
  24. {{py:
  25. a1 = issuer.address[:]
  26. a2 = customer.address[:]
  27. a1 += (len(a2)-len(a1))*[""]
  28. a2 += (len(a1)-len(a2))*[""]
  29. }}
  30. {{for f1, f2 in zip(a1, a2)}}
  31. \multicolumn{2}{l|}{\large {{f1}}} & \multicolumn{2}{l}{\large {{f2}}} \\
  32. {{endfor}}
  33. % COMPANY ID NUMBERS
  34. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\
  35. \multicolumn{2}{l|}{IČO: {{issuer.ico}}} & \multicolumn{2}{l}{IČO: {{if customer.icdph}}\hspace{0.3cm}{{endif}} {{customer.ico}}} \\
  36. \multicolumn{2}{l|}{DIČ: {{issuer.dic}}} & \multicolumn{2}{l}{DIČ: {{if customer.icdph}}\hspace{0.3cm}{{endif}} {{customer.dic}}} \\
  37. {{if issuer.icdph or customer.icdph}}
  38. {{if issuer.icdph}}
  39. \multicolumn{2}{l|}{IČDPH: {{issuer.icdph}}} &
  40. {{else}}
  41. \multicolumn{2}{l|}{Neplatca DPH} &
  42. {{endif}}
  43. {{if customer.icdph}}
  44. \multicolumn{2}{l}{IČDPH: {{customer.icdph}}} \\
  45. {{else}}
  46. \multicolumn{2}{l}{} \\
  47. {{endif}}
  48. {{endif}}
  49. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\
  50. % Comments
  51. {{py:
  52. a1 = issuer.comments[:]
  53. a2 = customer.comments[:]
  54. a1 += (len(a2)-len(a1))*[""]
  55. a2 += (len(a1)-len(a2))*[""]
  56. }}
  57. {{for f1, f2 in zip(a1, a2)}}
  58. \multicolumn{2}{l|}{ \footnotesize {{f1}} } & \multicolumn{2}{l}{ \footnotesize {{f2}} } \\
  59. {{endfor}}
  60. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\
  61. \multicolumn{2}{l|}{\bf Platobné podmienky:} & & \\
  62. Forma úhrady: & \multicolumn{1}{l|}{ {{"v~hotovosti" if invoice.payment=="cash" else "prevodom"}}} & & \\
  63. IBAN: & \multicolumn{1}{l|}{ {{issuer.iban}}} & Dátum vystavenia: & \multicolumn{1}{r}{ {{invoice.issued.strftime("%d.%m.%Y")}}} \\
  64. SWIFT/BIC: & \multicolumn{1}{l|}{ {{issuer.swift}} } & \multicolumn{2}{l}{Dátum dodania: \hfill {{invoice.delivered.strftime("%d.%m.%Y")}}} \\
  65. Variabilný symbol: & \multicolumn{1}{l|}{ {{invoice.number}}} & \multicolumn{2}{l}{\large\bf Dátum splatnosti: \hfill {{invoice.due.strftime("%d.%m.%Y")}}} \\
  66. % COMMENTS
  67. {{if invoice.notes}}
  68. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\ \hline
  69. & & & \\
  70. \bf Poznámky: & & & \\[1em]
  71. {{for note in invoice.notes}}
  72. \multicolumn{4}{l}{\large {{note}}} \\
  73. {{endfor}}
  74. {{endif}}
  75. \multicolumn{2}{X|}{} & \multicolumn{2}{X}{} \\ \hline
  76. & & & \\
  77. \multicolumn{4}{l}{\bf Faktúrujeme Vám za služby podľa Rámcovej zmluvy} \\
  78. & & & \\
  79. % ITEMS
  80. \multicolumn{4}{X}{%
  81. \hspace*{-1.35\tabcolsep}
  82. \begin{tabu} to \textwidth {%
  83. >{\hsize=2.5\hsize}X[l]%
  84. >{\hsize=0.5\hsize}X[r]%
  85. >{\hsize=0.5\hsize}X[r]%
  86. >{\hsize=0.5\hsize}X[r]%
  87. >{\hsize=0.5\hsize}X[r]}
  88. \normalsize \bf Popis položky & \bf Množstvo & \bf MJ & \bf Cena za MJ & \bf Celková cena \\
  89. {{for item in invoice.items}}
  90. {{item[0]}} & {{item[1]}} & {{item[2]}} & {{eur(item[3])}} & {{eur(item[1] * item[3])}} \\
  91. {{endfor}}
  92. \end{tabu}
  93. } \\
  94. %& & & \\
  95. %\hline
  96. %& & & \\
  97. %\multicolumn{3}{l}{\large\bf Celkom k úhrade:} & \multicolumn{1}{r}{\large\bf {{eur(invoice.sum)}} } \\
  98. & & & \\
  99. \hline
  100. \multicolumn{4}{r}{} \\
  101. %\multicolumn{4}{r}{\includegraphics[scale=1]{../signature.jpg}\hspace{.4cm} } \\
  102. \end{tabularx}
  103. \end{center}
  104. \vfill
  105. % Footer
  106. \centering
  107. \begin{tabu} to \textwidth {XX|XX|X|X[r]}
  108. \hline
  109. Vyhotovil: Peter Hatina && Prevzal: && Celková suma: & {{eur(invoice.sum)}} \\ \cline{5-6}
  110. \multirow{2}{*}{\hspace*{1.0cm}\includegraphics[scale=0.3]{../signature.jpg} } && && Uhradené zálohami: & {{eur(invoice.advance)}} \\ \cline{5-6}
  111. && && Zostáva uhradiť: & {{eur(invoice.topay)}} \\ \cline{5-6}
  112. && && & \\
  113. && && \multirow{-2}{*}{K úhrade:} & \multirow{-2}{*}{ \bf \large {{eur(invoice.topay)}}\phantom} \\
  114. \end{tabu}
  115. \end{document}