diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-08-29 04:29:25 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-08-29 04:29:25 +0200 |
| commit | 0dfd786bdd7dffc13f941d5a37e814f9f8bda846 (patch) | |
| tree | f54189a091c9fcf21cd3338e7a61481d24735143 /templates | |
| parent | ad7b23c17dbe05e7e6a4ad3ea023f692f832a938 (diff) | |
.tex templates
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/_data.tex | 49 | ||||
| -rw-r--r-- | templates/_invoice.tex | 12 | ||||
| -rw-r--r-- | templates/_main.tex | 85 |
3 files changed, 146 insertions, 0 deletions
diff --git a/templates/_data.tex b/templates/_data.tex new file mode 100644 index 0000000..15128fc --- /dev/null +++ b/templates/_data.tex @@ -0,0 +1,49 @@ +% ################## invoice DATA ################## +\newcommand{\invoiceDate}{[[.InvDate]]} % Datum der rechnungsstellung +\newcommand{\payDate}{DD.MM.YYYY} % Datum der Zahlungsfrist +\newcommand{\workDate}{[[.WorkDate]]} % Zeitraum der Arbeit DD.MM.-DD.MM.YYYY +\newcommand{\invoiceReference}{[[.InvNo]]} % Rechnungsnummer (z.B. 20150122-4) +\newcommand{\invoiceTitle}{[[.ProjName]]} % Gleich wie im _invoice.tex +\newcommand{\invoiceSalutation}{Sehr geehrte Damen und Herren,} % die Anrede +\newcommand{\invoiceText}{Für die von mir erbrachten Leistungen bei unten aufgeführten Projekt, im Zeitraum vom \workDate, erlaube ich mir diese Rechnung zu stellen. Bitte zahlen Sie den unten aufgeführten Gesamtbetrag, +unter Angabe der Rechnungsnummer (\invoiceReference), umgehend auf das angegebene Konto ein.} % Rechnungstext +\newcommand{\invoiceEnclosures}{} % \encl{} einfügen +\newcommand{\invoiceClosing}{Mit vorzüglicher Hochachtung} +% ################## invoice DATA ################## + + + +% ################## Customer DATA ################## +\newcommand{\customerCompany}{[[.CustComp]]} %ggf. Firma +\newcommand{\customerName}{[[.CustName]]} % Name +\newcommand{\customerStreet}{[[.CustStr]]} % Straße +\newcommand{\customerZIP}{[[.CustZip]]} % Postleitzahl +\newcommand{\customerCity}{[[.CustCity]]} % Ort +% ################## Customer DATA ################## + + + + +% ################## Personal DATA ################## +% START INVOICE DATA +\newcommand{\taxID}{[[.TaxID]]} +% END INVOICE DATA +% START SENDERS DATA +\newcommand{\senderName}{[[.MyName]]} +\newcommand{\senderStreet}{[[.MyStr]]} +\newcommand{\senderZIP}{[[.MyZip]]} +\newcommand{\senderCity}{[[.MyCity]]} +\newcommand{\senderTelephone}{[[.MyTel]]} +\newcommand{\senderMobilephone}{[[.MyMob]]} +\newcommand{\senderEmail}{[[.MyMail]]} +\newcommand{\senderWeb}{\url{[[.MyUrl]]}} +% END SENDERES DATA +% START ACCOUNT DATA +\newcommand{\accountRCPT}{\senderName} +\newcommand{\accountNumber}{[[.BankNum]]} +\newcommand{\accountBLZ}{[[.BankLZ]]} +\newcommand{\accountBankName}{[[.BankName]]} +\newcommand{\accountIBAN}{[[.Iban]]} +\newcommand{\accountBIC}{[[.Bic]]} +% END ACCOUNT DATA +% ################## Personal DATA ################## diff --git a/templates/_invoice.tex b/templates/_invoice.tex new file mode 100644 index 0000000..ae899fc --- /dev/null +++ b/templates/_invoice.tex @@ -0,0 +1,12 @@ +\ProjectTitle{EinBeliebeigerTitel} % Muss gesetzt bleiben, scheint nirgends auf +[[range .]] +\FeeTwo{[[.Task]]}{[[.Timeframe]]}{[[.Hours]]}{[[.Price]]} +[[end]] + +% Auslagen +%\EBCi{Hotel, 12 Nächte} {2400.00} +%\STExpenses + +% Rabatt +%\Discount{Rabatt} {20} + diff --git a/templates/_main.tex b/templates/_main.tex new file mode 100644 index 0000000..b07b221 --- /dev/null +++ b/templates/_main.tex @@ -0,0 +1,85 @@ +% koma_env.tex +\documentclass[a4paper]{scrlttr2} +\usepackage[top=2cm, bottom=1cm, left=2cm, right=2cm]{geometry} +\usepackage{graphicx} +\usepackage{lmodern} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage{xcolor} +\usepackage[hidelinks]{hyperref} + +\usepackage[german]{invoice} + + +\renewcommand{\familydefault}{\sfdefault} + +% include meta data +\include{_data} + +\setkomavar{fromname}{\senderName} +\setkomavar{fromaddress}{\senderStreet \\ \senderZIP \ \senderCity} +\setkomavar{place}{\senderCity} +\setkomavar{date}{\invoiceDate} +\setkomavar{fromphone}{\senderTelephone} +\setkomavar{frommobilephone}{\senderMobilephone} +\setkomavar{fromemail}{\href{mailto:\senderEmail}{\nolinkurl{\senderEmail}}} +\setkomavar{subject}{Honorarnote} +\setkomavar{location}{ + \\[\baselineskip] \\[\baselineskip] + \flushright \small {\vspace{1cm}Rechnungsnummer: + \invoiceReference} +} + +\setkomavar{firsthead}{\hfill + \parbox[t][\headheight][t]{6cm}{% + \footnotesize + \raggedright + \flushright + \color[gray]{.3}% + \begin{tabular}{rl} + Anschrift & \usekomavar{fromname}\\ + & \senderStreet\\ + & \senderZIP \ \senderCity \\ + \\ + %\Telefon \ Telefon: \` \senderTelephone \\ + Mobil & \usekomavar{frommobilephone} \\ + E-Mail & \usekomavar{fromemail} \\ + Webseite & {\normalfont\ttfamily \senderWeb } \\ + \\ + Steuernummer & \taxID \\ + \\ + Institut & \accountBankName \\ + IBAN & \accountIBAN \\ + BIC & \accountBIC + \end{tabular} + }% +} + + +\begin{document} + \begin{letter}{\customerCompany \\ \customerName \\ + \customerStreet \\ \customerZIP \ \customerCity} + + \includegraphics[width=0.15\textwidth]{logo.png} + \opening{\invoiceSalutation} + \invoiceText + \\%\vspace{1cm} + \\ + %\fcolorbox{lightgray}{lightgray}{\large{Projekt: \textbf{\invoiceTitle}}} + \fcolorbox{lightgray}{lightgray}{\parbox{\textwidth}{\large{Projekt: \textbf{\invoiceTitle}}}} + + \begin{invoice}{Euro}{0} + \input{_invoice} + \end{invoice} + \ps Im ausgewiesenen Betrag ist gemäß § 19 UStG keine Umsatzsteuer + enthalten. + + \closing{\invoiceClosing} + \invoiceEnclosures + + + + \end{letter} +\end{document} + |
