Subversion Repositories sql-ledger-old

Rev

Rev 114 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 finnarne 1
\documentclass[twoside]{scrartcl}
2
\usepackage[frame]{xy}
3
\usepackage{tabularx}
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}
18
\begin{document}
19
 
20
\newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21
 
22
\newsavebox{\hdr}
23
\sbox{\hdr}{
24
  \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
25
 
26
  \parbox{\textwidth}{
27
    \parbox[b]{12cm}{
28
      <%company%>
29
 
30
      <%address%>}\hfill
31
    \begin{tabular}[b]{rr@{}}
32
    Telephone & <%tel%>\\
33
    Facsimile & <%fax%>
34
    \end{tabular}
35
 
36
    \rule[1.5ex]{\textwidth}{0.5pt}
37
  }
38
}
39
 
40
\fontfamily{cmss}\fontshape{n}\selectfont
41
 
42
\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
43
 
44
\pagestyle{myheadings}
45
%\thispagestyle{empty}     use this with letterhead paper
46
 
47
<%pagebreak 90 27 48%>
114 finnarne 48
\end{tabularx}
2 finnarne 49
 
50
  \rule{\textwidth}{2pt}
51
 
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56
 
57
\newpage
58
 
59
\markright{<%company%>\hfill <%invnumber%>}
60
 
61
\vspace*{-12pt}
62
 
114 finnarne 63
\begin{tabularx}{\textwidth}{@{}lXrlrrr@{}}
64
  \textbf{Artikelnr} & \textbf{Omschrijving} & \textbf{Aantal} &
65
    \textbf{Eenheid} & \textbf{Prijs} & \textbf{Korting} & \textbf{Bedrag} \\
2 finnarne 66
  & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68
 
69
 
70
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71
 
72
\vspace*{2cm}
73
 
74
<%name%>
75
 
76
<%addr1%>
77
 
78
<%addr2%>
79
 
80
<%addr3%>
81
 
82
<%addr4%>
83
 
84
\vspace{3.5cm}
85
 
86
\textbf{F A K T U U R}
87
\hfill
88
\begin{tabular}[t]{l@{\hspace{0.3cm}}l}
89
  \textbf{Datum} & <%invdate%> \\
90
  \textbf{Faktuurnummer} & <%invnumber%> \\
91
  \textbf{Klantnummer} & <%customer_id%>
92
\end{tabular}
93
 
94
\vspace{1cm}
95
 
114 finnarne 96
\begin{tabularx}{\textwidth}{@{}lXrlrrr@{}}
2 finnarne 97
  \textbf{Artikelnr} & \textbf{Omschrijving} & \textbf{Aantal} &
98
    \textbf{Eenheid} & \textbf{Prijs} & \textbf{Korting} & \textbf{Bedrag} \\
99
<%foreach number%>
100
  <%number%> & <%description%> & <%qty%> &
101
    <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
102
<%end number%>
114 finnarne 103
\end{tabularx}
2 finnarne 104
 
105
 
106
\parbox{\textwidth}{
107
\rule{\textwidth}{2pt}
108
 
109
\vspace{0.2cm}
110
 
111
\hfill
112
\begin{tabularx}{7cm}{Xr@{}}
113
  \textbf{Subtotaal} & \textbf{<%subtotal%>} \\
114
<%foreach tax%>
115
  <%taxdescription%> on <%taxbase%> & <%tax%>\\
116
<%end tax%>
117
  \hline
118
  \textbf{Totaal} & \textbf{<%total%>}\\
119
\end{tabularx}
120
 
121
\vspace{0.3cm}
122
 
123
\hfill
124
  Alle prijzen in \textbf{<%currency%>}.
125
 
126
\vspace{12pt}
127
 
128
<%if notes%>
129
  <%notes%>
130
<%end if%>
131
 
132
}
133
 
134
\vfill
135
\centerline{\textbf{Dank voor uw gewaardeerde klandizie!}}
136
 
137
\end{document}
138