1 \documentclass[twoside]{scrartcl}
4 \usepackage[latin1]{inputenc}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-2.0cm}
7 \setlength{\topmargin}{0cm}
8 \setlength{\headheight}{0.5cm}
9 \setlength{\headsep}{1cm}
10 \setlength{\topskip}{0pt}
11 \setlength{\oddsidemargin}{1.0cm}
12 \setlength{\evensidemargin}{1.0cm}
13 \setlength{\textwidth}{19.2cm}
14 \setlength{\textheight}{24.5cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
24 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
31 \begin{tabular}[b]{rr@{}}
36 \rule[1.5ex]{\textwidth}{0.5pt}
40 \fontfamily{cmss}\fontshape{n}\selectfont
42 \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
44 \pagestyle{myheadings}
45 %\thispagestyle{empty} use this with letterhead paper
47 <%pagebreak 90 27 37%>
50 \rule{\textwidth}{2pt}
53 \begin{tabularx}{7cm}{Xr@{}}
54 \textbf{Vahesumma} & \textbf{<%sumcarriedforward%>} \\
59 \markright{<%company%>\hfill <%invnumber%>}
63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64 \textbf{Kood} & \textbf{Kirjeldus} & \textbf{Kogus} &
65 \textbf{Ühik} & \textbf{Hind} & \textbf{Alh} & \textbf{Kokku} \\
66 & edasi kantud lehelt <%lastpage%> & & & & & <%sumcarriedforward%> \\
70 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
82 <%city%> <%state%> <%zipcode%>
92 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
93 \textbf{Kuupäev} & <%invdate%> \\
94 \textbf{Number} & <%invnumber%> \\
95 \textbf{Klient} & <%customer_id%>
100 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
101 \textbf{Kood} & \textbf{Kirjeldus} & \textbf{Kogus} &
102 \textbf{Ühik} & \textbf{Hind} & \textbf{Alh} & \textbf{Kokku} \\
104 <%number%> & <%description%> & <%qty%> &
105 <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
111 \rule{\textwidth}{2pt}
116 \begin{tabularx}{7cm}{Xr@{}}
117 \textbf{Vahesumma} & \textbf{<%subtotal%>} \\
119 <%taxdescription%> on <%taxbase%> & <%tax%>\\
122 \textbf{Summa} & \textbf{<%total%>}\\
128 Kõik hinnad \textbf{<%currency%>} funds.
139 \centerline{\textbf{Täname meeldiva koostöö eest!}}
141 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
143 \footnotetext[1]{\tiny
144 Maksetähtaeg <%terms%> päeva alates arve kuupäevast.
145 Intress tasumata summadelt on 1.5\% kuus kuni arve täeliku tasumiseni.
146 Tagastatud toodetele kehtib 10\% tagastamistasu. Enne toodete tagastamist on vajalik <%company%> nõusolek. Tagastavad tooted peavad olema makstud ning kindlustatud, <%company%> ei vastuta transpordi käigus tekkinud kahjude eest.}