Debian Codegraph @

texmf-dist/doc/latex/zugferd/DEMO-rechnung-zugferd.tex

raw
1 % !TeX Program=lualatex
2 %
3 % Demo file for the LaTeX-ZUGFeRD project
4 % This file corresponds to version 0.11 (2026-05-25)
5 %
6 % Copyright (C) 2024--2026 Marei Peischl <[email protected]>
7 % ---------------------------------------------------------
8 %
9 % This file may be distributed and/or modified under the
10 % conditions of the LaTeX Project Public License, either version 1.3c
11 % of this license or (at your option) any later version.
12 % The latest version of this license is in:
13 %
14 % http://www.latex-project.org/lppl.txt
15 %
16 % and version 1.3c or later is part of all distributions of LaTeX
17 % version 2008-05-04 or later.
18 %
19 % We used \DocumentMetadata before, but since this also loads the new tagging code, we currently workaround this loading the pdfmanagement directly:
20 \RequirePackage{pdfmanagement}
21 \SetKeys[document/metadata]{
22 pdfversion=1.7, % necessary as it would be 2.0 by default for the current releas
23 pdfstandard=a-3b,
24 lang=de,
25 }
26 \documentclass[parskip=half-,german]{scrartcl}
27
28 \usepackage[
29 format=xrechnung3.0% 3.0 is the default anyway, but you can select the format to avoid automatic changes.
30 ]{zugferd-invoice}
31
32 \setkomavar{invoice}{2024:1337}
33 \setkomavar{date}{{\InsertZUGFeRDData[set-today]{date}\today}}
34 \setkomavar{title}{Rechnung}
35
36 \SetZUGFeRDData{
37 % document-type = commercial-invoice, % commented as this setting matches the initial value
38 id=komavar,
39 % date=auto, % commented as this setting matches the initial value
40 % delivery-date = auto, % commented as this setting matches the initial value
41 subject=komavar,
42 fromaddress=komavar,
43 unit=hour,
44 seller/name = {peiTeX (Marei Peischl)},
45 seller/postcode = {20253},
46 seller/city ={Hamburg},
47 seller/country = DE,
48 seller/address = {Address 1},
49 seller/vatid = {DE123456789},
50 seller/contact= {Marei\\+4900000000\\[email protected]},
51 seller/email = {[email protected]},
52 buyer/reference = {buyer-reference}, %oder Leitweg-ID
53 buyer/name = {Käufer Name},
54 buyer/postcode = {20253},
55 buyer/city ={Hamburg},
56 buyer/country = DE,
57 buyer/address = {Address 1\\Address 2},
58 buyer/vatid = {DE123456789},
59 buyer/email = {[email protected]},
60 currency=€,
61 payment-terms={Zahlbar innerhalb von 14 Tagen},% either this one or the due-date below is required
62 due-date={20240118},
63 payment-means / type = 58, % SEPA Übereisung,
64 payment-means / iban = DE68430609671013251700,
65 payment-means / account-holder = Marei Peischl,
66 payment-means / bic =GENODEM1GLS
67 }
68
69 % An example to rerefence the own address data is shown in DEMO-rechnung-zugferd-Kleinunternehmen.tex.
70 % See documentation for details.
71 % This should be configured without your own zugferd-invoice package variant.
72
73 \begin{document}
74
75 \begin{letter}{\InsertZUGFeRDData[AddressData]{buyer}}% Please be aware that this does not print the Country, as this is only available via the Countrycode in this implementation
76
77 \opening{Guten Tag,}
78
79 hiermit stelle ich Ihnen meine Arbeit im Rahmen des Projektes XX in Rechnung. Die Leistung wurde im Januar 2024 erbracht.
80
81 \AddInvoiceItem{3}{Weiterentwicklung/funktionale Erweiterung}{90}
82 \AddInvoiceItem<unit=piece>[7]{3}{Support}{90}
83 \AddInvoiceItem{2}{Support an Feiertagen/Wochenende}{180}
84 \AddInvoiceItem{3.25}{Rundungstest}{95.38}
85
86
87 \PrintInvoiceTabular
88
89 Ich bitte Sie oben genannte Betrag binnen 30 Tagen auf unten genanntes Konto zu überweisen.
90
91 %Falls gewünscht
92 \closing{Happy \TeX{}ing}
93
94 \end{letter}
95 \end{document}