Add silvaletter template
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-07-17 23:18:25 +02:00
parent 6f1efb7470
commit cd9cc607f4
6 changed files with 70 additions and 10 deletions

View File

@ -20,7 +20,7 @@ RUN php artisan horizon:publish
USER root USER root
COPY ./.docker/php /bin COPY ./.docker/php /bin
VOLUME ["/app/packages/laravel-nami/.cookies", "/app/storage/app"] VOLUME ["/app/packages/laravel-nami/.cookies", "/app/storage/app", "/app/resources/views/tex/invoice"]
EXPOSE 9000 EXPOSE 9000

3
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "packages/silvaletter"]
path = packages/silvaletter
url = https://git.zoomyboy.de/silva/silvaletter.git
[submodule "packages/laravel-nami"] [submodule "packages/laravel-nami"]
path = packages/laravel-nami path = packages/laravel-nami
url = https://git.zoomyboy.de/silva/laravel-nami-api url = https://git.zoomyboy.de/silva/laravel-nami-api

View File

@ -1,14 +1,24 @@
\documentclass[silvaletter,12pt]{scrlttr2} \documentclass[dpsgletter,12pt]{scrlttr2}
\setkomavar{subject}{<<< $getSubject >>>} \setkomavar{subject}{<<< $getSubject >>>}
\setkomavar{fromname}[<<<$settings->from>>>]{<<<$settings->from_long>>>} \setkomavar{fromname}[<<<$settings->from>>>]{<<<$settings->from_long>>>}
@if($settings->mobile)
\KOMAoptions{frommobilephone}
\setkomavar{frommobilephone}[Mobiltelefon: ]{<<<$settings->mobile>>>} \setkomavar{frommobilephone}[Mobiltelefon: ]{<<<$settings->mobile>>>}
@endif
@if($settings->email)
\KOMAoptions{fromemail}
\setkomavar{fromemail}[E-Mail: ]{<<<$settings->email>>>} \setkomavar{fromemail}[E-Mail: ]{<<<$settings->email>>>}
@endif
@if($settings->website)
\KOMAoptions{fromurl}
\setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>}
\setkomavar{fromaddress}{<<<$settings->address>>>} @endif
@if($settings->address && $settings->zip && $settings->place)
\setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>}
\setkomavar{place}{<<<$settings->place>>>} \setkomavar{place}{<<<$settings->place>>>}
\setkomavar{fromzipcode}{<<<$settings->zip>>>} \setkomavar{fromzipcode}{<<<$settings->zip>>>}
\setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo @endif
\begin{document} \begin{document}
\begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>}

View File

@ -1,14 +1,24 @@
\documentclass[silvaletter,12pt]{scrlttr2} \documentclass[dpsgletter,12pt]{scrlttr2}
\setkomavar{subject}{<<< $getSubject >>>} \setkomavar{subject}{<<< $getSubject >>>}
\setkomavar{fromname}[<<<$settings->from>>>]{<<<$settings->from_long>>>} \setkomavar{fromname}[<<<$settings->from>>>]{<<<$settings->from_long>>>}
@if($settings->mobile)
\KOMAoptions{frommobilephone}
\setkomavar{frommobilephone}[Mobiltelefon: ]{<<<$settings->mobile>>>} \setkomavar{frommobilephone}[Mobiltelefon: ]{<<<$settings->mobile>>>}
@endif
@if($settings->email)
\KOMAoptions{fromemail}
\setkomavar{fromemail}[E-Mail: ]{<<<$settings->email>>>} \setkomavar{fromemail}[E-Mail: ]{<<<$settings->email>>>}
@endif
@if($settings->website)
\KOMAoptions{fromurl}
\setkomavar{fromurl}[Website: ]{<<<$settings->website>>>} \setkomavar{fromurl}[Website: ]{<<<$settings->website>>>}
\setkomavar{fromaddress}{<<<$settings->address>>>} @endif
@if($settings->address && $settings->zip && $settings->place)
\setkomavar{fromaddress}{<<<$settings->address>>>\\<<<$settings->zip>>> <<<$settings->place>>>}
\setkomavar{place}{<<<$settings->place>>>} \setkomavar{place}{<<<$settings->place>>>}
\setkomavar{fromzipcode}{<<<$settings->zip>>>} \setkomavar{fromzipcode}{<<<$settings->zip>>>}
\setkomavar{fromlogo}{\includegraphics[width=2cm]{logo.png}} % stammeslogo @endif
\begin{document} \begin{document}
\begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>} \begin{letter}{<<< $toName >>>\\<<< $toAddress >>>\\<<< $toZip >>> <<< $toLocation >>>}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,43 @@
\ProvidesFile{dpsgletter.lco}
% ---------------------------- Require packages ----------------------------
\RequirePackage{xcolor}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[ngerman]{babel}
\RequirePackage{fp}
\RequirePackage{booktabs}
\RequirePackage{ragged2e}
\RequirePackage{graphicx}
\RequirePackage{numprint}
\RequirePackage[gen]{eurosym}
\RequirePackage[condensed,math]{kurier}
% ---------------------------- Color definition ----------------------------
\definecolor{dpsgblue}{HTML}{003056}
% ----------------------------- font settings ------------------------------
\addtokomafont{subject}{\large\color{dpsgblue}}
% -------------------------- Calculation of table --------------------------
\gdef\TotalHT{0}
\newcommand{\product}[2]{%
#1 & \FPmul\temp{#2}{1}\FPround\temp{\temp}{2}\numprint[\euro]{\temp}
%% Totalize
\FPadd\total{\TotalHT}{\temp}%
\FPround\total{\total}{2}%
\global\let\TotalHT\total%
\\ }
\newcommand{\totalttc}{\numprint[\euro]{\TotalHT}
}
% ---------------------------- Global variables ----------------------------
\KOMAoptions{DIV=15, pagenumber=no, enlargefirstpage, firstfoot=false, foldmarks, fromlogo, fromalign=right}
\setlength{\parindent}{0pt}
\setlength{\parskip}{10pt}
\setkomavar{backaddressseparator}{ $\cdot$ }
\setkomavar{fromlogo}{\includegraphics[height=3cm]{assets/logo.png}} % stammeslogo
\renewcommand*{\raggedsignature}{\raggedright} % Signatur links ausrichten
\setkomavar{signature}{} % Kein From unter Unterschriften-Feld