-
Notifications
You must be signed in to change notification settings - Fork 2
/
invoice.tex
235 lines (200 loc) · 5.74 KB
/
invoice.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
%Author : Stéphane Küng
%Version : 1.1
\documentclass[a4paper,12pt]{letter}
%Usepackage
\usepackage{wallpaper}
\usepackage{fontspec}
\usepackage[absolute]{textpos}
\usepackage[T1]{fontenc}
\usepackage[margin=1cm]{geometry}
%\usepackage[french]{./packages/invoice}
\usepackage[english]{./packages/invoice}
\usepackage{hyperref}
\usepackage[ddmmyyyy]{datetime}
\renewcommand{\dateseparator}{.}
\usepackage{advdate}
%This is juste for having blue link in emails
\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={My title}, % title
pdfauthor={Author}, % author
pdfsubject={Subject}, % subject of the document
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfkeywords={keyword1} {key2} {key3}, % list of keywords
pdfnewwindow=true, % links in new PDF window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=red, % color of internal links (change box color with linkbordercolor)
citecolor=green, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
%Set Fonts (Calibri and OCR-B)
\newfontfamily\myfont[Path = fonts/]{OCR-B}
\newfontfamily\mymainfont[Path = fonts/,ItalicFont = *-Italic,BoldFont = *-Bold]{Calibri}
\newenvironment{calibri}{\mymainfont}{}
\newenvironment{ocr}{\myfont}{}
%Remove number on first page
\pagenumbering{gobble}
%Select here the background you want (Red BV or Orange BVR)
%\ULCornerWallPaper{1}{templates/303_bank.pdf}
%\ULCornerWallPaper{1}{templates/303_post.pdf}
%\ULCornerWallPaper{1}{templates/609_bank.pdf}
%\ULCornerWallPaper{1}{templates/609_post.pdf}
%\ULCornerWallPaper{1}{templates/407_bank.pdf}
%\ULCornerWallPaper{1}{templates/407_post.pdf}
\ULCornerWallPaper{1}{templates/701_bank.pdf}
%\ULCornerWallPaper{1}{templates/701_post.pdf}
%Put details about your invoice here
\newcommand{\thedate}{\today}
\newcommand{\thefinaldate}{\DayAfter[30]}
\newcommand\account{01-456-7}
\newcommand\francs{168}
\newcommand\cents{95}
\newcommand\clientid{MK-5646}
\newcommand\invoiceid{23-14}
%\newcommand\currencycode{CHF}
\newcommand\currencycode{EUR}
\newcommand\wirereceiver{UBS AG\\8001 Zürich}
\newcommand\wirefor{Mike Kruger\\Glennerstrasse 120\\6142 Gettnau}
\newcommand\mycompanyname{Mike Kruger\\Glennerstrasse 120\\6142 Gettnau\\\href{mailto:[email protected]}{[email protected]}\\Tel : 079 456 78 90}
\newcommand\clientname{Stéphane Küng\\Av. de la Gare 2\\1208 Genève\\Tel : 079 123 44 55\\}
\newcommand\wirefrom{Stéphane Küng\\Av. de la Gare 2\\1208 Genève\\}
\newcommand\refno{00 78546 45211 05470 07931 12380}
\newcommand\refcode{01000000168954>007854645211054700793112380+ 010004567>}
\newcommand\communication{}
\begin{document}
\begin{calibri}
{\huge Invoice}
%From Field
\begin{textblock}{12.6}(0.8,1.3)
\raggedright
{\small \mycompanyname}
\end{textblock}
%To Field
\begin{textblock}{12.6}(10,3)
\raggedright
{\large \clientname}
\end{textblock}
%Informations Field
\begin{textblock}{4}(10,1.3)
\raggedright
{\small
Invoice date : \\
Client ID : \\
Invoice ID : \\
Total Amount : \\
Payment due date :
}
\end{textblock}
%Informations Values Field
\begin{textblock}{4}(10,1.3)
\raggedleft
{\small
\textbf{\thedate}\\
\textbf{\clientid}\\
\textbf{\invoiceid}\\
\textbf{\currencycode\ \francs.\cents}\\
\textbf{\thefinaldate}}
\end{textblock}
%Invoice Part
\begin{textblock}{12.6}(1.7,4.7)
\begin{invoice}{\currencycode}{0}
\ProjectTitle{Items}
\Fee{Web Hosting {\footnotesize 1.10.2014 - 30.9.2015}} {145.95} {1}
\Fee{Domain Name xxxx.ch {\footnotesize 1.10.2014 - 30.9.2015}} {23.00} {1}
\end{invoice}
\end{textblock}
%Bottom Message Field
\begin{textblock}{12.6}(1.7,9.5)
\raggedright
Total payment due in 30 days\\
\textit{Thank you for your business!}
\end{textblock}
\end{calibri}
%BVR Part with OCR Font
\begin{ocr}
%Payment for Field 1
\begin{textblock}{4.2}(0.3,10.8)
\raggedright
\wirereceiver\
\end{textblock}
%Payment for Field 2
\begin{textblock}{4.2}(4.8,10.8)
\raggedright
\wirereceiver\
\end{textblock}
%In Favor of Field (Postal Field only)
\begin{textblock}{4.2}(0.3,11.5)
\raggedright
\wirefor\
\end{textblock}
%In Favor of Field 2 (Postal Field only)
\begin{textblock}{4.2}(4.8,11.5)
\raggedright
\wirefor\
\end{textblock}
%Account Number Field 1
\begin{textblock}{2.2}(2.3,12.65)
\raggedright
\account\
\end{textblock}
%Account Number Field 2
\begin{textblock}{2.2}(6.9,12.65)
\raggedright
\account\
\end{textblock}
% Amount CHF Field 1
\begin{textblock}{2}(1.1,13.08)
\raggedleft
\francs\
\end{textblock}
% Amount CHF Field 2
\begin{textblock}{2}(5.7,13.08)
\raggedleft
\francs\
\end{textblock}
% Amount in CTS of CHF Field 1
\begin{textblock}{2}(3.9,13.08)
\raggedright
\cents\
\end{textblock}
% Amount in CTS of CHF Field 2
\begin{textblock}{2}(8.5,13.08)
\raggedright
\cents\
\end{textblock}
% Payment From Field 1
\begin{textblock}{4}(0.3,13.7)
\raggedright
\wirefrom\
\end{textblock}
% Payment From Field 2
\begin{textblock}{4}(9.45,13.05)
\raggedright
\wirefrom\
\end{textblock}
% Reason / Communications Field
\begin{textblock}{3.9}(9.5,10.8)
\raggedright
\communication\
\end{textblock}
% Reference Number Field
\begin{textblock}{7}(9.5,12.16)
\raggedright
\refno\
\end{textblock}
% Bottom Code Field
\begin{textblock}{11}(5.1,14.95)
\raggedright
\refcode\
\end{textblock}
\end{ocr}
\end{document}