| 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 |
% it is a modified Version! |
| 6 |
% |
| 7 |
% Copyright (C) 2024--2026 Marei Peischl <[email protected]> |
| 8 |
% --------------------------------------------------------- |
| 9 |
% |
| 10 |
% This file may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in: |
| 14 |
% |
| 15 |
% http://www.latex-project.org/lppl.txt |
| 16 |
% |
| 17 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 18 |
% version 2008-05-04 or later. |
| 19 |
% |
| 20 |
% We used \DocumentMetadata before, but since this also loads the new tagging code, we currently workaround this loading the pdfmanagement directly: |
| 21 |
\RequirePackage{pdfmanagement} |
| 22 |
\SetKeys[document/metadata]{ |
| 23 |
pdfversion=1.7, % necessary as it would be 2.0 by default for the current releas |
| 24 |
pdfstandard=a-3b, |
| 25 |
lang=de, |
| 26 |
} |
| 27 |
\documentclass[parskip=half-,german]{scrartcl} |
| 28 |
|
| 29 |
\usepackage[ |
| 30 |
format=xrechnung3.0% 3.0 is the default anyway, but you can select the format to avoid automatic changes. |
| 31 |
%format=basic |
| 32 |
]{zugferd-invoice} |
| 33 |
|
| 34 |
\setkomavar{invoice}{2024:1337} |
| 35 |
\setkomavar{date}{{\InsertZUGFeRDData[set-today]{date}\today}} |
| 36 |
\setkomavar{title}{Rechnung} |
| 37 |
|
| 38 |
\SetZUGFeRDData{ |
| 39 |
% document-type = commercial-invoice, % commented as this setting matches the initial value |
| 40 |
id=komavar, |
| 41 |
% date=auto, % commented as this setting matches the initial value |
| 42 |
% delivery-date = auto, % commented as this setting matches the initial value |
| 43 |
subject=komavar, |
| 44 |
fromaddress=komavar, |
| 45 |
unit=hour, |
| 46 |
seller/vatid = {DE123456789}, |
| 47 |
% seller/id=1123,% If no VatID exists a seller/id is required. This might be an ID provided by the buyer |
| 48 |
seller/name = {Kleinunternehmer*in X}, |
| 49 |
seller/legal-description = {Kein Ausweis von Umsatzsteuer, da Kleinunternehmer gemäß § 19 UStG}, |
| 50 |
seller/postcode = {20253}, |
| 51 |
seller/city ={Hamburg}, |
| 52 |
seller/country = DE, |
| 53 |
seller/address = {Address 1}, |
| 54 |
seller/contact= {Marei\\+4900000000\\[email protected]}, |
| 55 |
seller/email = {[email protected]}, |
| 56 |
seller/taxid=XXXXX, |
| 57 |
buyer/reference = {buyer-reference}, %oder Leitweg-ID |
| 58 |
buyer/name = {Käufer Name}, |
| 59 |
buyer/postcode = {20253}, |
| 60 |
buyer/city ={Hamburg}, |
| 61 |
buyer/country = DE, |
| 62 |
buyer/address = {Address 1\\Address 2}, |
| 63 |
buyer/vatid = {DE123456789}, |
| 64 |
buyer/email = {[email protected]}, |
| 65 |
currency=€, |
| 66 |
payment-terms={Zahlbar innerhalb von 14 Tagen},% either this one or the due-date below is required |
| 67 |
due-date={20240118}, |
| 68 |
payment-means / type = 58, % SEPA Übereisung, |
| 69 |
payment-means / iban = DE68430609671013251700, |
| 70 |
payment-means / account-holder = Marei Peischl, |
| 71 |
payment-means / bic =GENODEM1GLS, |
| 72 |
tax/add-exemption-reason-auto={E={{Kein Ausweis von Umsatzsteuer, da Kleinunternehmer*in gemäß § 19 UStG}}} |
| 73 |
} |
| 74 |
|
| 75 |
\InitVATExempt{E}% Tax Exempt |
| 76 |
|
| 77 |
\AddInvoiceItem<unit=hour>[E]{3}{Support}{90} |
| 78 |
|
| 79 |
\setkomavar{firsthead}{% |
| 80 |
\InsertZUGFeRDData[AddressData]{seller}\\ |
| 81 |
Steuernummer: \UseZUGFeRDAddressItem{seller}{taxid}\\ |
| 82 |
Umsatzsteuer-ID: \UseZUGFeRDAddressItem{seller}{vatid}\\ |
| 83 |
IBAN: \InsertZUGFeRDData{payment-means/iban} |
| 84 |
} |
| 85 |
|
| 86 |
\begin{document} |
| 87 |
\begin{letter}{\InsertZUGFeRDData[AddressData]{buyer}} |
| 88 |
\opening{Guten Tag,} |
| 89 |
|
| 90 |
hiermit stelle ich Ihnen meine Arbeit im Rahmen des Projektes XX in Rechnung. Die Leistung wurde im Januar 2024 erbracht. |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
\PrintInvoiceTabular |
| 95 |
Ich bitte Sie oben genannte Betrag binnen 30 Tagen auf oben genanntes Konto zu überweisen. |
| 96 |
|
| 97 |
%Falls gewünscht |
| 98 |
\closing{Happy \TeX{}ing} |
| 99 |
|
| 100 |
\end{letter} |
| 101 |
\end{document} |