summaryrefslogtreecommitdiff
path: root/templates/Hungarian-invoice.tex
blob: 85485185f8690faa221e227b8181613a00b25a06 (plain)
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %%% %%%
  3. %%% Szamla - LaTeX sablon v. 1.01 %%%
  4. %%% Kovacs Laszlo -- lakovacs@inf.unideb.hu %%%
  5. %%% %%%
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. %%%
  8. %%% 2003.10.31.
  9. %%%
  10. %%%
  11. \documentclass[twoside]{article}
  12. %\documentclass[twoside]{scrartcl}
  13. % \usepackage[frame]{xy}
  14. \usepackage{tabularx}
  15. %\usepackage{graphicx}
  16. \usepackage[latin2]{inputenc}
  17. \setlength{\voffset}{-0.5cm}
  18. \setlength{\hoffset}{-2.5cm}
  19. \setlength{\topmargin}{0cm}
  20. \setlength{\headheight}{0.5cm}
  21. \setlength{\headsep}{1cm}
  22. \setlength{\topskip}{0pt}
  23. \setlength{\oddsidemargin}{1.0cm}
  24. \setlength{\evensidemargin}{1.0cm}
  25. \setlength{\textwidth}{19.2cm}
  26. \setlength{\textheight}{24.5cm}
  27. \setlength{\footskip}{1cm}
  28. \setlength{\parindent}{0pt}
  29. \renewcommand{\baselinestretch}{1}
  30. \newcommand{\PAR}[1]{\texttt{\upshape <\%#1\%>}\typeout{#1}}
  31. \begin{document}
  32. \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
  33. \newsavebox{\headright}
  34. \sbox{\headright}{
  35. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  36. \parbox{\textwidth}{
  37. \begin{center}
  38. % \includegraphics[scale=1.0]{/tmp/logo_04.eps} \\[.3cm]
  39. {\large\bfseries SZÁMLA} \\
  40. \end{center}
  41. \mbox{}\hfill <%copysum%> \\
  42. \mbox{}\hfill <%copynumber%>
  43. }
  44. }
  45. \newsavebox{\headleft}
  46. \sbox{\headleft}{
  47. \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
  48. \parbox{\textwidth}{
  49. % \includegraphics[scale=.5]{/tmp/logo_04.eps}
  50. \hfill <%invnumber%>\\[-3mm]
  51. \rule{\textwidth}{.5pt}
  52. }
  53. }
  54. \markboth{}{\usebox{\headright}}
  55. \pagestyle{myheadings}
  56. \fontfamily{cmss}\fontsize{10pt}{12pt}\fontshape{n}\selectfont
  57. <%pagebreak 65 27 48%>
  58. \end{tabularx}
  59. }
  60. \rule{\textwidth}{1.5pt}
  61. \hfill
  62. \begin{tabularx}{7cm}{X@{ }r@{}}
  63. \textbf{Részösszeg} & <%sumcarriedforward%> \cr
  64. \end{tabularx}
  65. \newpage
  66. \markboth{\usebox{\headleft}}{\usebox{\headleft}}
  67. \mbox{}\vspace{.5cm}
  68. \rule{\textwidth}{1.5pt}
  69. \vspace{.3cm}
  70. {\scriptsize
  71. \begin{tabularx}{\textwidth}{>{\hsize=0.4cm\centering}X@{\ }
  72. >{\hsize=0.9cm\raggedleft}X@{\ }
  73. >{\hsize=1.9cm\raggedleft}X@{\ }
  74. >{\hsize=2.9cm\raggedleft}X@{\ }
  75. >{\hsize=1.9cm\centering}X@{\ }
  76. >{\hsize=0.9cm\centering}X@{\ }
  77. >{\hsize=0.5cm\centering}X@{\ }
  78. >{\hsize=2.0cm\raggedleft}X@{\ }
  79. >{\hsize=2.0cm\raggedleft}X@{\ }
  80. >{\hsize=0.8cm\raggedleft}X@{\ }
  81. >{\hsize=2.0cm\raggedleft}X@{\ }
  82. >{\hsize=2.0cm\raggedleft}X@{}
  83. }
  84. \textbf{no} & \textbf{Márka} & \textbf{Áru} & \centering\textbf{Megnevezés} &
  85. \textbf{VTSZ} & \textbf{Menny.} & \textbf{u} &
  86. \textbf{Nettó egységár} & \textbf{Nettó összeg} & \textbf{ÁFA\%} &
  87. \textbf{ÁFA összeg} & \textbf{Bruttó összeg}
  88. \cr
  89. & & \textbf{előző oldalról} &
  90. & & &
  91. & & &
  92. & & <%sumcarriedforward%>
  93. \cr
  94. <%end pagebreak%>
  95. \mbox{}\vspace{3.5cm}
  96. \rule{\textwidth}{1.5pt}
  97. \vspace{3mm}
  98. \hbox to\hsize{
  99. \begin{minipage}[t]{9.5cm}
  100. \textbf{Eladó:} \\
  101. <%company%>\\
  102. <%address%>\\
  103. Adószám: <%businessnumber%>\\
  104. tel: <%tel%>\\
  105. fax: <%fax%>
  106. \end{minipage}
  107. \hfill \
  108. \begin{minipage}[t]{9.5cm}
  109. \textbf{Vevő:} \\
  110. <%name%>\\
  111. <%address1%>\\
  112. <%if address2%>
  113. <%address2%>
  114. <%end address2%>\\
  115. <%city%> <%state%> <%zipcode%>\\
  116. <%if country%>
  117. <%country%>
  118. <%end country%>
  119. \end{minipage}
  120. }
  121. \vspace{5mm}
  122. \rule{\textwidth}{1.5pt}
  123. \vspace{3mm}
  124. \hspace{-3mm}
  125. \begin{tabularx}{\textwidth}{>{\hsize=2.1cm\centering}X@{\ }
  126. >{\hsize=2.8cm\centering}X@{\ }
  127. >{\hsize=2.8cm\centering}X@{\ }
  128. >{\hsize=2.8cm\centering}X@{\ }
  129. >{\hsize=3.4cm\centering}X@{\ }
  130. >{\hsize=2.5cm\centering}X@{\ }
  131. >{\hsize=2.0cm\raggedleft}X@{}}
  132. \textbf{Fizetési mód} & \textbf{Telj.~dátuma} & \textbf{Számla kelte} &
  133. \textbf{Esedékesség} & \textbf{Megrendelés} & \textbf{Kiállította} & \textbf{Sorszám}
  134. \cr
  135. <%shippingpoint%> & <%invdate%> & <%crdate%> &
  136. <%duedate%> & <%ordnumber%> & <%employee%> & <%invnumber%>
  137. \end{tabularx}
  138. \vspace{5mm}
  139. \rule{\textwidth}{1.5pt}
  140. \vspace{3mm}
  141. \hspace{-3mm}
  142. {\scriptsize
  143. \begin{tabularx}{\textwidth}{>{\hsize=0.4cm\centering}X@{\ }
  144. >{\hsize=0.9cm\raggedright}X@{\ }
  145. >{\hsize=1.9cm\raggedright}X@{\ }
  146. >{\hsize=2.9cm\raggedright}X@{\ }
  147. >{\hsize=1.9cm\centering}X@{\ }
  148. >{\hsize=0.9cm\raggedleft}X@{\ }
  149. >{\hsize=0.5cm\centering}X@{\ }
  150. >{\hsize=2.0cm\raggedleft}X@{\ }
  151. >{\hsize=2.0cm\raggedleft}X@{\ }
  152. >{\hsize=0.8cm\raggedleft}X@{\ }
  153. >{\hsize=2.0cm\raggedleft}X@{\ }
  154. >{\hsize=2.0cm\raggedleft}X@{}
  155. }
  156. \centering\textbf{sz.} & \raggedright\textbf{Márka} & \raggedright\textbf{Áru} & \raggedright\textbf{Megnevezés} &
  157. \centering\textbf{VTSZ} & \raggedleft\textbf{Menny.} & \centering\textbf{egys.} &
  158. \raggedleft\textbf{Nettó egységár} & \raggedleft\textbf{Nettó összeg} & \raggedright\textbf{ÁFA\%} &
  159. \raggedleft\textbf{ÁFA összeg} & \raggedleft\textbf{Bruttó összeg}
  160. \cr
  161. <%foreach number%>
  162. <%runningnumber%> & <%partsgroup%> & <%number%> & <%description%> &
  163. <%bin%> & <%qty%> & <%unit%> &
  164. <%netprice%> & <%linetotal%> & <%linetaxrate%> &
  165. <%taxamount%> & <%linetotal2%>
  166. \cr
  167. <%end number%>
  168. \end{tabularx}
  169. }
  170. \rule{\textwidth}{1.5pt}
  171. \hbox to\hsize{
  172. \hspace{8.4cm}
  173. \begin{minipage}[t]{11cm}
  174. \rule{10.6cm}{1.5pt}
  175. \vspace{.2cm}
  176. \begin{tabularx}{10cm}{>{\hsize=7cm\raggedleft}X>{\hsize=3cm\raggedleft}X}
  177. %\textbf{Total} & <%invtotal%> \cr
  178. \textbf{Nettó összesen} & <%subtotal%> \cr
  179. <%foreach tax%>
  180. \textbf{Alap:} <%taxbase%> \textbf{ráta:} <%taxrate%> & <%tax%> \cr
  181. <%end tax%>
  182. <%if paid%>
  183. \textbf{Fizetve:} & -<%paid%>
  184. <%end paid%>
  185. \end{tabularx}
  186. \rule{10.6cm}{1.5pt}
  187. \begin{tabularx}{10cm}{>{\hsize=7cm\raggedleft}X>{\hsize=3cm\raggedleft}X}
  188. \textbf{A számla végösszege} & <%total%> \textbf{Ft}
  189. \end{tabularx}
  190. \end{minipage}
  191. }
  192. \vfill
  193. \vspace{1cm}
  194. <%if notes%>
  195. \textbf{Megjegyzés:} <%notes%>
  196. \vspace{1cm}
  197. <%end if%>
  198. <%if paid%>
  199. \textbf{Fizetések:}
  200. \rule{12cm}{1.5pt}
  201. \vspace{.2cm}
  202. \begin{tabularx}{12cm}{@{}>{\hsize=2.9cm\centering}X@{\ }
  203. >{\hsize=2.9cm\centering}X@{\ }
  204. >{\hsize=2.9cm\centering}X@{\ }
  205. >{\hsize=2.9cm\raggedleft}X@{}}
  206. \textbf{Dátum} & \textbf{Számla} & \textbf{Bizonylatszám} & \textbf{Összeg}
  207. \cr
  208. <%end paid%>
  209. <%foreach payment%>
  210. <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%>
  211. \cr
  212. <%end payment%>
  213. <%if paid%>
  214. \end{tabularx}
  215. <%end paid%>
  216. \vspace{1cm}
  217. <%intnotes%>
  218. \end{document}