From: Jan Büren Date: Tue, 28 Jul 2015 11:53:04 +0000 (+0200) Subject: RB als Standard Druckvorlage gesetzt - Pflichtenheft übernmommen X-Git-Tag: release-3.3.0beta~24 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=435dc5f73bf8279e6ab3ceca94206153b6e8b97f;p=kivitendo-erp.git RB als Standard Druckvorlage gesetzt - Pflichtenheft übernmommen Da der Pfad Standard in einigen Dateien (DB-Upgrade-Skript) hart-kodiert wurde, insbesondere um die Pflichtenheft-Druckvorlagen nachträglich in benutzdefinierte Vorlagenverzeichnissse zu packen, ist dies entsprechend auf Pfadebene abgebildet. S.a. #69 --- diff --git a/templates/print/RB/images/draft.png b/templates/print/RB/images/draft.png new file mode 100644 index 000000000..8181bebde Binary files /dev/null and b/templates/print/RB/images/draft.png differ diff --git a/templates/print/RB/images/hintergrund_seite1.png b/templates/print/RB/images/hintergrund_seite1.png new file mode 100644 index 000000000..28610f43e Binary files /dev/null and b/templates/print/RB/images/hintergrund_seite1.png differ diff --git a/templates/print/RB/images/hintergrund_seite2.png b/templates/print/RB/images/hintergrund_seite2.png new file mode 100644 index 000000000..e4b204be3 Binary files /dev/null and b/templates/print/RB/images/hintergrund_seite2.png differ diff --git a/templates/print/RB/images/schachfiguren.jpg b/templates/print/RB/images/schachfiguren.jpg new file mode 100644 index 000000000..d8e9cca82 Binary files /dev/null and b/templates/print/RB/images/schachfiguren.jpg differ diff --git a/templates/print/RB/invoice.odt b/templates/print/RB/invoice.odt deleted file mode 100644 index 822ba9062..000000000 Binary files a/templates/print/RB/invoice.odt and /dev/null differ diff --git a/templates/print/RB/requirement_spec.tex b/templates/print/RB/requirement_spec.tex new file mode 100644 index 000000000..84ebec04a --- /dev/null +++ b/templates/print/RB/requirement_spec.tex @@ -0,0 +1,178 @@ +% config: use-template-toolkit=1 +% config: tag-style=$( )$ +$( USE KiviLatex )$ +$( USE P )$ +\documentclass{scrartcl} + +\usepackage[reqspeclogo,$( IF !rspec.version )$draftlogo$( ELSE )$secondpagelogo$( END )$]{kivitendo} +$( KiviLatex.required_packages_for_html )$ + +\kivitendobgsettings + +\setlength{\LTpre}{0pt} +\setlength{\LTpost}{0pt} + +\renewcommand{\kivitendosecondfoot}{% + \parbox{12cm}{% + \defaultfont\scriptsize% + $( KiviLatex.filter(rspec.displayable_name) )$\\ + $( !rspec.version ? "Arbeitskopie ohne Version" : "Version " _ rspec.version.version_number _ " vom " _ rspec.version.itime.to_kivitendo(precision='minute') )$ + + \vspace*{0.2cm}% + Seite \thepage% + }% +} + +\reqspecsectionstyle + +\begin{document} + +%% Titelseite + +\setlongtables +\defaultfont + +\begin{picture}(0,0) + \put(3.5,-5){% + \begin{minipage}[t][6cm]{12cm} + \Large + \textcolor{kivitendodarkred}{$( KiviLatex.filter(rspec.type.description) )$} + + \huge + $( KiviLatex.filter(rspec.customer.name) )$ + + \vspace*{0.5cm} + \Large + $( KiviLatex.filter(rspec.title) )$ + \normalsize +%$( IF rspec.version )$ + + Version $( KiviLatex.filter(rspec.version.version_number) )$ +%$( END )$ + \end{minipage}% + } +\end{picture} + +%% Inhaltsverzeichnis + +%\newpage + +%\tableofcontents + +%% Versionen +\newpage + +\section{Versionen} + +\vspace*{0.7cm} + +%$( SET working_copy = rspec.working_copy_id ? rspec.working_copy : rspec )$ +%$( SET versioned_copies = rspec.version ? working_copy.versioned_copies_sorted(max_version_number = rspec.version.version_number) : working_copy.versioned_copies_sorted )$ +%$( IF !versioned_copies.size )$ + Bisher wurden noch keine Versionen angelegt. +%$( ELSE )$ +\begin{longtable}{|p{2cm}|p{2cm}|p{12cm}|} + \hline + \multicolumn{1}{|r}{\small Version} & + \multicolumn{1}{|r|}{\small Datum} & + \small Beschreibung\\ + \hline +%$( FOREACH versioned_copy = versioned_copies )$ + \multicolumn{1}{|r}{\small $( KiviLatex.filter(versioned_copy.version.version_number) )$} & + \multicolumn{1}{|r|}{\small $( KiviLatex.filter(versioned_copy.version.itime.to_kivitendo(precision='minute')) )$} & + \small $( KiviLatex.filter(versioned_copy.version.description) )$\\ +%$( END )$ + \hline +\end{longtable} +%$( END )$ + +%$( BLOCK picture_outputter )$ +% $( SET width_cm = (picture.picture_width / 150.0) * 2.54 )$ +% $( SET width_cm = width_cm < 16.4 ? width_cm : 16.4 )$ +\begin{figure}[h!] + \centering + \includegraphics[width=$( width_cm )$cm,keepaspectratio]{$( picture.print_file_name )$} + +\mbox{Abbildung $( picture.number )$: $( KiviLatex.filter(picture.description ? picture.description : picture.picture_file_name) )$} +\end{figure} +%$( END )$ + +%$( BLOCK text_block_outputter )$ +% $( SET text_blocks = rspec.text_blocks_sorted(output_position=output_position) )$ +% $( IF text_blocks.size )$ + + \newpage + + \section{$( heading )$} + +% $( FOREACH text_block = text_blocks )$ + + \subsection{$( KiviLatex.filter(text_block.title) )$} + +$( KiviLatex.filter_html(text_block.text_as_restricted_html) )$ + +% $( FOREACH picture = text_block.pictures_sorted.as_list )$ +$( PROCESS picture_outputter picture=picture )$ +% $( END )$ + +% $( END )$ +% $( END )$ +%$( END )$ + +%% Textblöcke davor +$( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$ + +%% Abschnitte und Funktionsblöcke +\newpage + +\section{Spezifikation} + +\setlength{\LTpre}{-0.3cm} + + +%$( FOREACH top_item = rspec.sections_sorted )$ + + \subsection{Abschnitt $( KiviLatex.filter(top_item.fb_number) )$: $( KiviLatex.filter(top_item.title) )$} + +% $( IF top_item.description )$ + $( KiviLatex.filter_html(top_item.description_as_restricted_html.replace('\r', '').replace('\n+\Z', '')) )$ + + \vspace{0.5cm} +% $( END )$ +% $( FOREACH item = top_item.children_sorted )$ +\parbox[t]{1.0cm}{\textcolor{kivitendodarkred}{$>>>$}}% +\parbox[t]{15.0cm}{% +\begin{longtable}{p{2.8cm}p{11.7cm}} + Funktionsblock & $( KiviLatex.filter(item.fb_number) )$\\ + Beschreibung & $( KiviLatex.filter_html(item.description_as_restricted_html) )$\\ + Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(item)) )$ +\end{longtable}} + +% $( FOREACH sub_item = item.children_sorted )$ +\hspace*{1.15cm}\rule{15.2cm}{0.2pt}\\ +\hspace*{1.0cm}% +\parbox[t]{15.0cm}{% +\begin{longtable}{p{2.8cm}p{11.7cm}} + Unterfunktionsblock & $( KiviLatex.filter(sub_item.fb_number) )$\\ + Beschreibung & $( KiviLatex.filter_html(sub_item.description_as_restricted_html) )$\\ + Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(sub_item)) )$ +\end{longtable}} + +% $( END )$ + +% $( UNLESS loop.last )$ +\vspace{0.2cm} +\hrule +\vspace{0.4cm} + +% $( END )$ + +% $( END )$ +% +%$( END )$ + +%% Textblöcke dahinter +$( PROCESS text_block_outputter output_position=1 heading='Weitere Punkte' )$ + + +\end{document} diff --git a/templates/print/RB/sales_quotation.odt b/templates/print/RB/sales_quotation.odt deleted file mode 100644 index d42a867ec..000000000 Binary files a/templates/print/RB/sales_quotation.odt and /dev/null differ diff --git a/templates/print/Standard b/templates/print/Standard new file mode 120000 index 000000000..233f19298 --- /dev/null +++ b/templates/print/Standard @@ -0,0 +1 @@ +RB \ No newline at end of file