Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6f145268

Von Werner Hahn vor etwa 2 Jahren hinzugefügt

  • ID 6f1452687575f011958c80504b22fd6a924b6045
  • Vorgänger ddf39f9f
  • Nachfolger 8cd5aa96

Vorlage marei Beistelllieferschein

Unterschiede anzeigen:

templates/print/marei/purchase_delivery_order.tex
11 11
% settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12 12
\input{insettings.tex}
13 13

  
14
<%if template_meta.formname == "supplier_delivery_order"%>
15
  \renewcommand{\einkaufslieferschein} {\beistelllieferschein}
16
<%end%>
17

  
18 14

  
19 15
% laufende Kopfzeile:
20
\ourhead{}{}{\einkaufslieferschein}{<%donumber%>}{<%dodate%>}
16
\ourhead{}{}{\beistelllieferschein}{<%donumber%>}{<%dodate%>}
21 17

  
22 18
\setkomavar*{date}{\datum}
23
\setkomavar{date}{<%dodate%>}
19
\setkomavar{date}{<%transdate%>}
24 20

  
25 21
\setkomavar{fromname}{<%employee_name%>}
26 22
\setkomavar{fromphone}{<%employee_tel%>}
27 23
\setkomavar{fromemail}{<%employee_email%>}
28 24
\setkomavar{title}{
29
  \einkaufslieferschein~\nr ~<%donumber%>%
25
	\beistelllieferschein~\nr ~<%donumber%>%
30 26
}
31 27
<%if ordnumber%>
32
  \setkomavar{orderID}{<%ordnumber%>}
28
	\setkomavar{orderID}{<%ordnumber%>}
33 29
<%end if%>%
34 30
<%if cusordnumber%>%
35
  \setkomavar*{yourref}{\unsereBestellnummer}
36
  \setkomavar{yourref}{<%cusordnumber%>}
31
	\setkomavar*{yourref}{\unsereBestellnummer}
32
	\setkomavar{yourref}{<%cusordnumber%>}
37 33
<%end if%>%
38 34
\setkomavar{transaction}{<%transaction_description%>}
39 35

  
40 36
<%if globalprojectnumber%>%
41
  \setkomavar{projectID}{<%globalprojectnumber%>}
37
	\setkomavar{projectID}{<%globalprojectnumber%>}
42 38
<%end globalprojectnumber%>%
43 39

  
44 40
\setkomavar{transaction}{<%transaction_description%>}
......
47 43
<%if shiptoname%>%
48 44
\makeatletter
49 45
\begin{lrbox}\shippingAddressBox
50
  \parbox{\useplength{toaddrwidth}}{
51
    \backaddr@format{\scriptsize\usekomafont{backaddress}%
52
      \strut\abweichendeLieferadresse
53
    }
54
    \par\smallskip
55
    \setlength{\parskip}{\z@}
56
    \par
57
    \normalsize
58
    <%shiptoname%>\par
59
    <%if shiptocontact%> <%shiptocontact%><%end if%>\par
60
    <%shiptodepartment_1%>\par
61
    <%shiptodepartment_2%>\par
62
    <%shiptostreet%>\par
63
    <%shiptozipcode%> <%shiptocity%>%
64
  }
46
	\parbox{\useplength{toaddrwidth}}{
47
		\backaddr@format{\scriptsize\usekomafont{backaddress}%
48
			\strut\abweichendeLieferadresse
49
		}
50
		\par\smallskip
51
		\setlength{\parskip}{\z@}
52
		\par
53
		\normalsize
54
		<%shiptoname%>\par
55
		<%if shiptocontact%> <%shiptocontact%><%end if%>\par
56
		<%shiptodepartment_1%>\par
57
		<%shiptodepartment_2%>\par
58
		<%shiptostreet%>\par
59
		<%shiptozipcode%> <%shiptocity%>%
60
	}
65 61
\end{lrbox}
66 62
\makeatother
67 63
<%end if%>%
......
71 67

  
72 68

  
73 69
\begin{letter}{
74
<%name%>\strut\\
75
<%if department_1%><%department_1%>\\<%end if%>%
76
<%if department_2%><%department_2%>\\<%end if%>%
77
<%cp_givenname%> <%cp_name%>\strut\\
78
<%street%>\strut\\
79
<%zipcode%> <%city%>\strut\\
80
<%country%> \strut
70
	<%name%>\strut\\
71
	<%if department_1%><%department_1%>\\<%end if%>%
72
	<%if department_2%><%department_2%>\\<%end if%>%
73
	<%cp_givenname%> <%cp_name%>\strut\\
74
	<%street%>\strut\\
75
	<%zipcode%> <%city%>\strut\\
76
	<%country%> \strut
81 77
}
82 78

  
83 79

  
84 80
\opening{}
85 81
\thispagestyle{kivitendo.letter.first}
86 82

  
83
\biosaatgutbeistell
84

  
87 85
\begin{PricingTabular*}[columns={pos,amount,desc}]
88
  % eigentliche Tabelle
89
  \FakeTable{
90
  <%foreach number%>%
91
  <%runningnumber%> &
92
  <%qty%> <%unit%> &
93
  \textbf{<%description%>}
94
    <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
95
    <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
96
    <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
97
    <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
98
    <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
99
    <%foreach si_number%>%
100
    <%if si_chargenumber%>\ExtraDescription{\charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%><%si_qty%>~<%si_unit%><%end si_chargenumber%>}%
101
    <%end si_number%>%
102
    \tabularnewline
103
    <%end number%>%
104
  }
86
% eigentliche Tabelle
87
\FakeTable{
88
<%foreach number%>%
89
	<%runningnumber%> &
90
	<%qty%> <%unit%> &
91
	\textbf{<%description%>}
92
		<%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
93
		<%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
94
		<%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
95
		<%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
96
		<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
97
		<%foreach si_number%>%
98
			\ExtraDescription{<%if si_chargenumber%>\charge: <%si_chargenumber%>
99
      <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end si_bestbefore%>~--~<%si_qty%>~<%si_unit%>
100
        <%end si_chargenumber%>%%
101
      <%if ic_cvar_pp_pflicht%>
102

  
103
      \Pflanzenpass{<%ic_cvar_bot_name%>}{DE-NI115145}{<%donumber%> : <%si_chargenumber%>}{DE}<%end ic_cvar_pp_pflicht%>}%
104
		<%end si_number%>%
105
	\tabularnewline
106
<%end number%>%
107
}
105 108
\end{PricingTabular*}
106 109

  
107 110
\medskip
......
112 115
<%end if%>%
113 116

  
114 117
<%if delivery_term%>%
115
\lieferung ~<%delivery_term.description_long%>\\
118
  \lieferung ~<%delivery_term.description_long%>\\
116 119
<%end delivery_term%>%
117 120

  
118 121
\end{letter}
templates/print/marei/supplier_delivery_order.tex
1
purchase_delivery_order.tex
templates/print/marei/supplier_delivery_order.tex
1
\documentclass[paper=a4,fontsize=10pt]{scrartcl}
2
\usepackage{kiviletter}
3

  
4

  
5
% Variablen, die in settings verwendet werden
6
\newcommand{\lxlangcode} {<%template_meta.language.template_code%>}
7
\newcommand{\lxmedia} {<%media%>}
8
\newcommand{\lxcurrency} {<%currency%>}
9
\newcommand{\kivicompany} {<%employee_company%>}
10

  
11
% settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12
\input{insettings.tex}
13

  
14

  
15
% laufende Kopfzeile:
16
\ourhead{}{}{\beistelllieferschein}{<%donumber%>}{<%dodate%>}
17

  
18
\setkomavar*{date}{\datum}
19
\setkomavar{date}{<%transdate%>}
20

  
21
\setkomavar{fromname}{<%employee_name%>}
22
\setkomavar{fromphone}{<%employee_tel%>}
23
\setkomavar{fromemail}{<%employee_email%>}
24
\setkomavar{title}{
25
	\beistelllieferschein~\nr ~<%donumber%>%
26
}
27
<%if ordnumber%>
28
	\setkomavar{orderID}{<%ordnumber%>}
29
<%end if%>%
30
<%if cusordnumber%>%
31
	\setkomavar*{yourref}{\unsereBestellnummer}
32
	\setkomavar{yourref}{<%cusordnumber%>}
33
<%end if%>%
34
\setkomavar{transaction}{<%transaction_description%>}
35

  
36
<%if globalprojectnumber%>%
37
	\setkomavar{projectID}{<%globalprojectnumber%>}
38
<%end globalprojectnumber%>%
39

  
40
\setkomavar{transaction}{<%transaction_description%>}
41
\setkomafont{extraDescription}{\scriptsize}
42

  
43
<%if shiptoname%>%
44
\makeatletter
45
\begin{lrbox}\shippingAddressBox
46
	\parbox{\useplength{toaddrwidth}}{
47
		\backaddr@format{\scriptsize\usekomafont{backaddress}%
48
			\strut\abweichendeLieferadresse
49
		}
50
		\par\smallskip
51
		\setlength{\parskip}{\z@}
52
		\par
53
		\normalsize
54
		<%shiptoname%>\par
55
		<%if shiptocontact%> <%shiptocontact%><%end if%>\par
56
		<%shiptodepartment_1%>\par
57
		<%shiptodepartment_2%>\par
58
		<%shiptostreet%>\par
59
		<%shiptozipcode%> <%shiptocity%>%
60
	}
61
\end{lrbox}
62
\makeatother
63
<%end if%>%
64

  
65

  
66
\begin{document}
67

  
68

  
69
\begin{letter}{
70
	<%name%>\strut\\
71
	<%if department_1%><%department_1%>\\<%end if%>%
72
	<%if department_2%><%department_2%>\\<%end if%>%
73
	<%cp_givenname%> <%cp_name%>\strut\\
74
	<%street%>\strut\\
75
	<%zipcode%> <%city%>\strut\\
76
	<%country%> \strut
77
}
78

  
79

  
80
\opening{}
81
\thispagestyle{kivitendo.letter.first}
82

  
83
\begin{PricingTabular*}[columns={pos,amount,desc}]
84
% eigentliche Tabelle
85
\FakeTable{
86
<%foreach number%>%
87
	<%runningnumber%> &
88
	<%qty%> <%unit%> &
89
	\textbf{<%description%>}
90
		<%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
91
		<%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
92
		<%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
93
		<%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
94
		<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
95
		<%foreach si_number%>%
96
			\ExtraDescription{<%if si_chargenumber%>\charge: <%si_chargenumber%>
97
      <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end si_bestbefore%>~--~<%si_qty%>~<%si_unit%>
98
        <%end si_chargenumber%>%%
99
      }%
100
		<%end si_number%>%
101
	\tabularnewline
102
<%end number%>%
103
}
104
\end{PricingTabular*}
105

  
106
\medskip
107

  
108
<%if notes%>%
109
<%notes%>%
110
\medskip
111
<%end if%>%
112

  
113
<%if delivery_term%>%
114
  \lieferung ~<%delivery_term.description_long%>\\
115
<%end delivery_term%>%
116

  
117
\end{letter}
118

  
119
\end{document}

Auch abrufbar als: Unified diff