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.

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