Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e36cc2a6

Von Moritz Bunkus vor mehr als 12 Jahren hinzugefügt

  • ID e36cc2a647f25b9b8f1b9b8965f9fdef09a5cd8b
  • Vorgänger b3b1b699
  • Nachfolger cc5d61a9

pagebreak-Mechanismus entfernen

Fix für Bug 1733.

Unterschiede anzeigen:

SL/Template/LaTeX.pm
63 63
    $form->{"__odd__"}     = (($i + 1) % 2) == 1;
64 64
    $form->{"__counter__"} = $i + 1;
65 65

  
66
    if (   ref $description_array       eq 'ARRAY'
67
        && scalar @{$description_array} == scalar @{$ary}
68
        && $self->{"chars_per_line"}    != 0)
69
    {
70
      my $lines = int(length($description_array->[$i]) / $self->{"chars_per_line"});
71
      my $lpp;
72

  
73
      $description_array->[$i] =~ s/(\\newline\s?)*$//;
74
      $lines++ while ($description_array->[$i] =~ m/\\newline/g);
75
      $lines++;
76

  
77
      if ($current_page == 1) {
78
        $lpp = $self->{"lines_on_first_page"};
79
      } else {
80
        $lpp = $self->{"lines_on_second_page"};
81
      }
82

  
83
      # Yes we need a manual page break -- or the user has forced one
84
      if (   (($current_line + $lines) > $lpp)
85
          || ($description_array->[$i]     =~ /<pagebreak>/)
86
          || (   ref $longdescription_array eq 'ARRAY'
87
              && $longdescription_array->[$i] =~ /<pagebreak>/)) {
88
        my $pb = $self->{"pagebreak_block"};
89

  
90
        # replace the special variables <%sumcarriedforward%>
91
        # and <%lastpage%>
92

  
93
        my $psum = $form->format_amount($self->{"myconfig"}, $sum, 2);
94
        $pb =~ s/$self->{tag_start_qm}sumcarriedforward$self->{tag_end_qm}/$psum/g;
95
        $pb =~ s/$self->{tag_start_qm}lastpage$self->{tag_end_qm}/$current_page/g;
96

  
97
        my $new_text = $self->parse_block($pb, (@indices, $i));
98
        return undef unless (defined($new_text));
99
        $new_contents .= $new_text;
100

  
101
        $current_page++;
102
        $current_line = 0;
103
      }
104
      $current_line += $lines;
105
    }
106

  
107 66
    if (   ref $linetotal_array eq 'ARRAY'
108 67
        && $i < scalar(@{$linetotal_array})) {
109 68
      $sum += $form->parse_amount($self->{"myconfig"}, $linetotal_array->[$i]);
......
336 295

  
337 296
  my $contents = join("", @lines);
338 297

  
339
  # detect pagebreak block and its parameters
340
  if ($contents =~ /$self->{tag_start_qm}pagebreak\s+(\d+)\s+(\d+)\s+(\d+)\s*$self->{tag_end_qm}(.*?)$self->{tag_start_qm}end(\s*pagebreak)?$self->{tag_end_qm}/s) {
341
    $self->{"chars_per_line"} = $1;
342
    $self->{"lines_on_first_page"} = $2;
343
    $self->{"lines_on_second_page"} = $3;
344
    $self->{"pagebreak_block"} = $4;
345

  
346
    substr($contents, length($`), length($&)) = "";
347
  }
348

  
349
  $self->{"forced_pagebreaks"} = [];
350

  
351 298
  my $new_contents = $self->parse_block($contents);
352 299
  if (!defined($new_contents)) {
353 300
    $main::lxdebug->leave_sub();
doc/dokumentenvorlagen-und-variablen.html
128 128

  
129 129
    <li><a href="dokumentenvorlagen-und-variablen.html#bloecke_foreach">
130 130
      Die <code>foreach</code>-Schleife</a></li>
131

  
132
    <li><a href="dokumentenvorlagen-und-variablen.html#bloecke_pagebreak">
133
      Der <code>pagebreak</code>-Block</a></li>
134 131
   </ol>
135 132
  </li>
136 133

  
......
865 862
    <td><code>subtotal[_nofmt]</code></td>
866 863
    <td>Zwischensumme aller Posten ohne Steuern</td>
867 864
   </tr>
868
   <tr>
869
    <td><code>sumcarriedforward</code></td>
870
    <td>Zwischensumme aller bisher ausgegebenen Posten. Sollte nur in einem
871
     <a href="dokumentenvorlagen-und-variablen.html#bloecke_pagebreak">
872
      <code>pagebreak</code></a>-Block verwendet werden.</td>
873
   </tr>
874 865
   <tr>
875 866
    <td><code>total</code></td>
876 867
    <td>Restsumme der Rechnung (Summe abz&uuml;glich bereits bezahlter Posten)</td>
......
1569 1560
  zwischen <code>&lt;%foreach%&gt;</code> und <code>&lt;%end%&gt;</code>
1570 1561
  wiederholt, nicht aber die komplette Zeile, in der er steht.</p>
1571 1562

  
1572
 <h3><a name="bloecke_pagebreak">Der <code>pagebreak</code>-Block</a></h3>
1573

  
1574
 <p class="blue"><code>&lt;%pagebreak ZpZ ZeS ZzS%&gt;<br>
1575
   ...<br>
1576
   &lt;%end%&gt;</code></p>
1577

  
1578
 <p>Dieser Block existiert nur in LaTeX-Vorlagen.</p>
1579

  
1580
 <p>Dieser Block legt das Verhalten beim manuellen Einf&uuml;gen eines
1581
  Seitenumbruchs fest. Normalerweise bricht LaTeX die Seiten selber um. Beim
1582
  Rechnungsdruck ist das oft nicht gew&uuml;nscht, oder man m&ouml;chte im
1583
  Falle eines Seitenumbruchs den &Uuml;bertrag etc. mit ausgeben. Deswegen
1584
  versucht der Parser, manuell Seitenumbr&uuml;che einzuf&uuml;gen,
1585
  w&auml;hrend er einen <code>foreach</code>-Block auswertet, weil hier die
1586
  manuellen Seitenumbr&uuml;che erforderlich werden. Daf&uuml;r ben&ouml;tigt
1587
  der Parser aber drei Informationen:</p>
1588

  
1589
 <p>
1590
  <ol>
1591
   <li>Wieviele Zeichen passen bei der Variablen "description" pro Posten
1592
    in eine Zeile? Das ist der Parameter "ZpZ" (Zeichen pro Zeile).</li>
1593
   <li>Wieviele Zeilen/Posten passen auf die erste Seite? Das
1594
    ist der Parameter "ZeS" (Zeilen erste Seite).</li>
1595
   <li>Wieviele Zeilen/Posten passen auf die zweite und alle nachfolgenden
1596
    Seiten? Das ist der Parameter "ZzS" (Zeilen zweite Seite).</li>
1597
  </ol>
1598
 </p>
1599

  
1600
 <p>Diese Parameter sind drei Zahlen, die manuell durch Verwendung von langen
1601
  Warenbezeichnungen und Rechnungen mit vielen Posten bestimmt werden
1602
  m&uuml;ssen.</p>
1603

  
1604
 <p>&Uuml;blicherweise wird in diesem Block zuerst die aktuelle Tabelle
1605
  geschlossen, eventuell Text eingef&uuml;gt (z.B. "Fortsetzung auf der
1606
  n&auml;chsten Seite"), dann ein Seitenumbruch erzwungen, eventuell Text
1607
  eingef&uuml;gt (z.B. "&Uuml;bertrag von der vorherigen Seite:
1608
  &lt;%sumcarriedforward%&gt; EUR") und die Tabelle wieder ge&ouml;ffnet.</p>
1609

  
1610
 <p>Wird kein manueller Seitenumbruch gew&uuml;scht, so kann dieser Block
1611
  komplett entfallen.</p>
1612

  
1613 1563
 <small><a href="dokumentenvorlagen-und-variablen.html#inhaltsverzeichnis">
1614 1564
   zum Inhaltsverzeichnis</a></small><br>
1615 1565
 <hr>
......
1661 1611

  
1662 1612
 <p>Eine Besonderheit ist der Befehl <code>&lt;pagebreak&gt;</code>,
1663 1613
  der nur in LaTeX-Vorlagen funktioniert und in anderen Vorlagen
1664
  einfach gel&ouml;scht wird. Dieser erzwingt unabh&auml;ngig von der
1665
  im <a
1666
  href="dokumentenvorlagen-und-variablen.html#bloecke_pagebreak">pagebreak-Block</a>
1667
  voreingestellten Werte einen Seitenumbruch nach der aktuellen
1668
  Rechnungsposition. Dementsprechend funktioniert er nur innerhalb von
1614
  einfach gel&ouml;scht wird. Dieser erzwingt einen Seitenumbruch nach
1615
  der aktuellen Rechnungsposition. Dementsprechend funktioniert er nur
1616
  innerhalb von
1669 1617
  <code>&lt;%foreach...%&gt;</code>-Schleifen. Weiterhin ben&ouml;tigt
1670 1618
  er kein Endtag.</p>
1671 1619

  
templates/print/Default/bin_list.tex
29 29
\parbox{\textwidth}{
30 30
  \parbox[b]{.42\textwidth}{%
31 31
    <%company%>
32
    
32

  
33 33
    <%address%>
34 34
  }\hfill
35 35
  \begin{tabular}[b]{rr@{}}
......
40 40
  \rule[1.5ex]{\textwidth}{0.5pt}
41 41
}
42 42

  
43
 
44
<%pagebreak 90 27 37%>
45
\end{tabularx}
46

  
47
\newpage
48

  
49
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
50

  
51
\vspace*{-12pt}
52

  
53
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
54
  \textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
55
<%end pagebreak%>
56

  
57 43

  
58 44
\vspace*{0.5cm}
59 45

  
......
94 80
  <%end warehouse%>
95 81
  & \textbf{Shipping Point} & \textbf{Ship via} \\ [0.5em]
96 82
  \hline
97
  
83

  
98 84
  <%ordnumber%>
99 85
  <%if shippingdate%>
100 86
  & <%shippingdate%>
......
109 95
  & <%shippingpoint%> & <%shipvia%> \\
110 96
  \hline
111 97
\end{tabularx}
112
  
98

  
113 99
\vspace{1cm}
114
  
100

  
115 101
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
116 102
  \textbf{Pos} & \textbf{Number} & \textbf{Description} & \textbf{Serial Number} & & \textbf{Qty} & \textbf{Recd} & & \textbf{Bin} \\
117 103

  
templates/print/Default/invoice.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 37%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%invnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
66
  & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{0.5cm}
templates/print/Default/pick_list.tex
30 30
\parbox{\textwidth}{
31 31
  \parbox[b]{.42\textwidth}{
32 32
    <%company%>
33
    
33

  
34 34
    <%address%>
35 35
  }
36 36
  \parbox[b]{.2\textwidth}{
......
44 44
  \rule[1.5ex]{\textwidth}{0.5pt}
45 45
}
46 46

  
47
 
48
<%pagebreak 90 27 37%>
49
\end{tabular*}
50

  
51
\newpage
52

  
53
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
54

  
55
\vspace*{-12pt}
56

  
57
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}}
58
  \textbf{Pos} & \textbf{Number} & \textbf{Description} &
59
  \textbf{Qty} & \textbf{Ship} & & \textbf{Bin} \\
60
<%end pagebreak%>
61

  
62 47

  
63 48
\vspace*{0.5cm}
64 49

  
......
71 56

  
72 57
\parbox[t]{1cm}{\hfill}
73 58
\parbox[t]{.5\textwidth}{
74
  
59

  
75 60
<%shiptoname%> \\
76 61
<%shiptostreet%> \\
77 62
<%shiptozipcode%> \\
......
121 106
  & <%shippingpoint%> & <%shipvia%> \\
122 107
  \hline
123 108
\end{tabularx}
124
  
109

  
125 110
\vspace{1cm}
126 111

  
127 112
\begin{tabular*}{\textwidth}{@{}rlp{\descrwidth}@{\extracolsep\fill}rcll@{}}
templates/print/Default/purchase_order.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 37%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%ordnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
64
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
66
  & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{0.5cm}
templates/print/Default/request_quotation.tex
39 39
  \rule[1.5ex]{\textwidth}{0.5pt}
40 40
}
41 41

  
42

  
43
<%pagebreak 90 27 48%>
44
\end{tabular*}
45

  
46
  \rule{\textwidth}{2pt}
47

  
48
  \hfill
49
  \begin{tabularx}{7cm}{Xr@{}}
50
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
51
  \end{tabularx}
52

  
53
\newpage
54

  
55
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
56

  
57
\vspace*{-12pt}
58

  
59
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
60
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
61
    \textbf{Unit} & \textbf{Price} & \textbf{Extended} \\
62
  & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
63
<%end pagebreak%>
64

  
65

  
66 42
\vspace*{0.5cm}
67 43

  
68 44
\parbox[t]{1cm}{\hfill}
templates/print/Default/sales_order.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%ordnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
66
  & carried forward from <%lastpage%> & & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{2cm}
templates/print/Default/sales_quotation.tex
28 28
\parbox{\textwidth}{
29 29
  \parbox[b]{.42\textwidth}{
30 30
    <%company%>
31
    
31

  
32 32
    <%address%>
33 33
  }
34 34
  \parbox[b]{.2\textwidth}{
......
42 42
  \rule[1.5ex]{\textwidth}{0.5pt}
43 43
}
44 44

  
45

  
46
<%pagebreak 90 27 48%>
47
\end{tabular*}
48

  
49
  \rule{\textwidth}{2pt}
50
  
51
  \hfill
52
  \begin{tabularx}{7cm}{Xr@{}}
53
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
54
  \end{tabularx}
55

  
56
\newpage
57

  
58
\markboth{<%company%>\hfill <%quonumber%>}{<%company%>\hfill <%quonumber%>}
59

  
60
\vspace*{-12pt}
61

  
62
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
63
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
64
    \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
65
  & carried forward from <%lastpage%> & & & & & <%sumcarriedforward%> \\
66
<%end pagebreak%>
67

  
68

  
69 45
\vspace*{0.5cm}
70 46

  
71 47
\parbox[t]{1cm}{\hfill}
......
113 89
  <%quonumber%> & <%quodate%> & <%reqdate%> & <%employee%> & <%shippingpoint%> & <%shipvia%> \\
114 90
  \hline
115 91
\end{tabularx}
116
  
92

  
117 93
\vspace{1cm}
118 94

  
119 95
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
templates/print/French/invoice.tex
27 27
  \parbox{\textwidth}{
28 28
    \parbox[b]{12cm}{
29 29
      <%company%>
30
      
30

  
31 31
      <%address%>}\hfill
32 32
    \begin{tabular}[b]{rr@{}}
33 33
    Téléphone & <%tel%>\\
......
37 37
    \rule[1.5ex]{\textwidth}{0.5pt}
38 38
  }
39 39
}
40
    
40

  
41 41
\fontfamily{cmss}\fontshape{n}\selectfont
42 42

  
43 43
\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
......
45 45
\pagestyle{myheadings}
46 46
%\thispagestyle{empty}     use this with letterhead paper
47 47

  
48
<%pagebreak 90 27 48%>
49
\end{tabular*}
50

  
51
  \rule{\textwidth}{2pt}
52
  
53
  \hfill
54
  \begin{tabularx}{7cm}{Xr@{}}
55
  \textbf{Sous-total} & \textbf{<%sumcarriedforward%>} \\
56
  \end{tabularx}
57

  
58
\newpage
59

  
60
\markright{<%company%>\hfill <%invnumber%>}
61

  
62
\vspace*{-12pt}
63

  
64
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
65
  \textbf{Numéro} & \textbf{Description} & \textbf{Qté} &
66
    \textbf{Unité} & \textbf{Prix} & \textbf{Remise} & \textbf{Montant} \\
67
  & reporté de la page <%lastpage%> & & & & & <%sumcarriedforward%> \\
68
<%end pagebreak%>
69

  
70

  
71 48
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
72 49

  
73 50
\vspace*{2cm}
templates/print/French/purchase_order.tex
27 27
  \parbox{\textwidth}{
28 28
    \parbox[b]{12cm}{
29 29
      <%company%>
30
      
30

  
31 31
      <%address%>}\hfill
32 32
    \begin{tabular}[b]{rr@{}}
33 33
    Téléphone & <%tel%>\\
......
37 37
    \rule[1.5ex]{\textwidth}{0.5pt}
38 38
  }
39 39
}
40
    
40

  
41 41
\fontfamily{cmss}\fontshape{n}\selectfont
42 42

  
43 43
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
45 45
\pagestyle{myheadings}
46 46
%\thispagestyle{empty}     use this with letterhead paper
47 47

  
48
<%pagebreak 90 27 48%>
49
\end{tabular*}
50

  
51
  \rule{\textwidth}{2pt}
52
  
53
  \hfill
54
  \begin{tabularx}{7cm}{Xr@{}}
55
  \textbf{Sous-total} & \textbf{<%sumcarriedforward%>} \\
56
  \end{tabularx}
57

  
58
\newpage
59

  
60
\markright{<%company%>\hfill <%ordnumber%>}
61

  
62
\vspace*{-12pt}
63

  
64
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
65
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
66
    \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
67
  & reporté de la page <%lastpage%> & & & & <%sumcarriedforward%> \\
68
<%end pagebreak%>
69

  
70

  
71 48
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
72 49

  
73 50
\vspace*{2cm}
templates/print/French/sales_order.tex
27 27
  \parbox{\textwidth}{
28 28
    \parbox[b]{12cm}{
29 29
      <%company%>
30
      
30

  
31 31
      <%address%>}\hfill
32 32
    \begin{tabular}[b]{rr@{}}
33 33
    Téléphone & <%tel%>\\
......
37 37
    \rule[1.5ex]{\textwidth}{0.5pt}
38 38
  }
39 39
}
40
    
40

  
41 41
\fontfamily{cmss}\fontshape{n}\selectfont
42 42

  
43 43
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
45 45
\pagestyle{myheadings}
46 46
%\thispagestyle{empty}     use this with letterhead paper
47 47

  
48
<%pagebreak 90 27 48%>
49
\end{tabular*}
50

  
51
  \rule{\textwidth}{2pt}
52
  
53
  \hfill
54
  \begin{tabularx}{7cm}{Xr@{}}
55
  \textbf{Sous-total} & \textbf{<%sumcarriedforward%>} \\
56
  \end{tabularx}
57

  
58
\newpage
59

  
60
\markright{<%company%>\hfill <%ordnumber%>}
61

  
62
\vspace*{-12pt}
63

  
64
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
65
  \textbf{Numéro} & \textbf{Description} & \textbf{Qté} &
66
    \textbf{Unité} & \textbf{Prix} & \textbf{Remise} & \textbf{Montant} \\
67
  & reporté de la page <%lastpage%> & & & & & <%sumcarriedforward%> \\
68
<%end pagebreak%>
69

  
70

  
71 48
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
72 49

  
73 50
\vspace*{2cm}
templates/print/French/statement.tex
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51

  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%statementdate%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
64
  \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} &
65
  \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90+} \\
66
  carried forward from <%lastpage%> & & & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{1.5cm}
73 50

  
74 51
\parbox[t]{1cm}{\hfill}
75 52
\parbox[t]{10.5cm}{
76
  
53

  
77 54
<%name%>
78 55

  
79 56
<%street%>
templates/print/German/bin_list.tex
29 29
\parbox{\textwidth}{
30 30
  \parbox[b]{.42\textwidth}{%
31 31
    <%company%>
32
    
32

  
33 33
    <%address%>
34 34
  }\hfill
35 35
  \begin{tabular}[b]{rr@{}}
......
40 40
  \rule[1.5ex]{\textwidth}{0.5pt}
41 41
}
42 42

  
43
 
44
<%pagebreak 90 27 37%>
45
\end{tabularx}
46

  
47
\newpage
48

  
49
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
50

  
51
\vspace*{-12pt}
52

  
53
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
54
  \textbf{Pos} & \textbf{Nummer} & \textbf{Beschreibung} & \textbf{Seriennummer} & & \textbf{Menge} & \textbf{Erh} & & \textbf{Lagerplatz} \\
55
<%end pagebreak%>
56

  
57 43

  
58 44
\vspace*{0.5cm}
59 45

  
templates/print/German/credit_note.tex
13 13

  
14 14
\fontfamily{cmss}\fontshape{n}\selectfont
15 15

  
16
<%pagebreak 80 28 37%>
17
\end{tabularx}
18

  
19
\newpage
20

  
21
\begin{tabularx}{\textwidth}{lrXrr}
22
  \hline
23
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
24
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
25
  \hline
26
<%end pagebreak%>
27

  
28 16
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
29 17

  
30 18
\vspace*{1.5cm}
......
77 65
    <%sellprice%> \euro & <%linetotal%> \euro \\
78 66
    <%if discount_sub%> & Zwischensumme: &  & <%discount_sub%> \euro  & <%end if%>\\
79 67
  <%end number%>\hline
80
  \multicolumn{4}{l}{Nettobetrag} & <%subtotal%> \euro \\ 
68
  \multicolumn{4}{l}{Nettobetrag} & <%subtotal%> \euro \\
81 69
  <%foreach tax%>
82 70
  \multicolumn{4}{l}{<%taxdescription%>} & <%tax%> \euro \\
83 71
  <%end tax%>
templates/print/German/invoice.tex
13 13

  
14 14
\fontfamily{cmss}\fontshape{n}\selectfont
15 15

  
16
<%pagebreak 80 28 37%>
17
\end{tabularx}
18

  
19
\newpage
20

  
21
\begin{tabularx}{\textwidth}{lrXrr}
22
  \hline
23
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
24
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
25
  \hline
26
<%end pagebreak%>
27

  
28 16
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
29 17

  
30 18
\vspace*{1.5cm}
......
80 68
    <%sellprice%> \euro & <%linetotal%> \euro \\
81 69
    <%if discount_sub%> & Zwischensumme: &  & <%discount_sub%> \euro  & <%end if%>\\
82 70
  <%end number%>\hline
83
  \multicolumn{4}{l}{Nettobetrag} & <%subtotal%> \euro \\ 
71
  \multicolumn{4}{l}{Nettobetrag} & <%subtotal%> \euro \\
84 72
  <%foreach tax%>
85 73
  \multicolumn{4}{l}{<%taxdescription%>} & <%tax%> \euro \\
86 74
  <%end tax%>
templates/print/German/pick_list.tex
30 30
\parbox{\textwidth}{
31 31
  \parbox[b]{.42\textwidth}{
32 32
    <%company%>
33
    
33

  
34 34
    <%address%>
35 35
  }\hfill
36 36
  \begin{tabular}[b]{rr@{}}
......
41 41
  \rule[1.5ex]{\textwidth}{0.5pt}
42 42
}
43 43

  
44
 
45
<%pagebreak 90 27 37%>
46
\end{tabular*}
47

  
48
\newpage
49

  
50
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
51

  
52
\vspace*{-12pt}
53

  
54
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}}
55
  \textbf{Pos} & \textbf{Nummer} & \textbf{Beschreibung} &
56
  \textbf{Menge} & \textbf{Lagerausgang} & & \textbf{Lagerplatz} \\
57
<%end pagebreak%>
58

  
59 44

  
60 45
\vspace*{0.5cm}
61 46

  
templates/print/German/purchase_order.tex
11 11

  
12 12
\fontfamily{cmss}\fontshape{n}\selectfont
13 13

  
14
<%pagebreak 80 28 37%>
15
\end{tabularx}
16

  
17
\newpage
18

  
19
\begin{tabularx}{\textwidth}{lrXrr}
20
  \hline
21
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
22
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
23
  \hline
24
  <%foreach number%>
25
    <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
26
    <%sellprice%> & <%linetotal%>\\
27
  <%end number%>
28

  
29
<%end pagebreak%>
30

  
31 14
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
32 15

  
33 16
\vspace*{1.5cm}
templates/print/German/request_quotation.tex
42 42
}
43 43

  
44 44

  
45
<%pagebreak 90 27 48%>
46
\end{tabular*}
47

  
48
  \rule{\textwidth}{2pt}
49

  
50
  \hfill
51
  \begin{tabularx}{7cm}{Xr@{}}
52
  \textbf{Zwischenzumme} & \textbf{<%sumcarriedforward%>} \\
53
  \end{tabularx}
54

  
55
\newpage
56

  
57
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
58

  
59
\vspace*{-12pt}
60

  
61
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rl}
62
  \textbf{Nummer} & \textbf{Beschreibung} & \textbf{Menge} & \\
63
<%end pagebreak%>
64

  
65

  
66 45
\vspace*{0.5cm}
67 46

  
68 47
\parbox[t]{1cm}{\hfill}
templates/print/German/sales_delivery_order.tex
13 13

  
14 14
\fontfamily{cmss}\fontshape{n}\selectfont
15 15

  
16
<%pagebreak 80 28 37%>
17
\end{tabularx}
18

  
19
\newpage
20

  
21
\begin{tabularx}{\textwidth}{lrXrr}
22
  \hline
23
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
24
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
25
  \hline
26
<%end pagebreak%>
27

  
28 16
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
29 17

  
30 18
\vspace*{1.5cm}
templates/print/German/sales_order.tex
11 11

  
12 12
\fontfamily{cmss}\fontshape{n}\selectfont
13 13

  
14
<%pagebreak 80 28 37%>
15
\end{tabularx}
16

  
17
\newpage
18

  
19
\begin{tabularx}{\textwidth}{lrXrr}
20
  \hline
21
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
22
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
23
  \hline
24
  <%foreach number%>
25
    <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
26
    <%sellprice%> & <%linetotal%>\\
27
  <%end number%>
28
<%end pagebreak%>
29

  
30 14
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
31 15

  
32 16
\vspace*{1.5cm}
templates/print/German/sales_quotation.tex
11 11

  
12 12
\fontfamily{cmss}\fontshape{n}\selectfont
13 13

  
14
<%pagebreak 80 28 37%>
15
\end{tabularx}
16

  
17
\newpage
18

  
19
\begin{tabularx}{\textwidth}{lrXrr}
20
  \hline
21
  \textbf{Pos} & \textbf{Menge} & \textbf{Bezeichnung} &
22
  \textbf{E-Preis/\euro} & \textbf{G-Preis/\euro} \\
23
  \hline
24
  <%foreach number%>
25
    <%runningnumber%> & <%qty%> <%unit%> & \raggedright <%description%> &
26
    <%sellprice%> & <%linetotal%>\\
27
  <%end number%>
28
<%end pagebreak%>
29

  
30 14
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
31 15

  
32 16
\vspace*{1.5cm}
templates/print/German/statement.tex
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51

  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%statementdate%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
64
  \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} &
65
  \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90+} \\
66
  carried forward from <%lastpage%> & & & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{1.5cm}
73 50

  
74 51
\parbox[t]{1cm}{\hfill}
75 52
\parbox[t]{10.5cm}{
76
  
53

  
77 54
<%name%>
78 55

  
79 56
<%street%>
templates/print/RB/Readme.tex
64 64
%    Eine Hintergrundgrafik oder ein Logo kann in Abhängigkeit vom
65 65
%    Medium (z.B. nur beim Verschicken mit E-Mail) eingebunden
66 66
%    werden. Dies ist im Moment auskommentiert.
67
% 
67
%
68 68
%    Desweiteren sind (auskommentierte) Beispiele enthalten für eine
69 69
%    Grafik als Briefkopf, nur ein Logo, oder ein komplettes DinA4-PDF
70 70
%    als Briefpapier.
......
77 77
% Tabellen:
78 78
%    Als Tabellenumgebung wird longtable verwendet. Diese Umgebung
79 79
%    kann in einer Tabelle umbrechen. Da aber der Umbruch nicht von
80
%    Lx-Office kontrolliert wird, kann man kein Übertrag mit
81
%    <%sumcarriedforward%> machen (dazu z.B. tabularx und
82
%    <%pagebreak ... %> verwenden).
80
%    Lx-Office kontrolliert wird, kann man keinen Übertrag machen.
83 81
%    Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen. Um
84 82
%    dies zu erreichen kann z.B. per renewcommand das "\newline" umdefiniert
85 83
%    werden.
templates/print/RB/bin_list.tex
29 29
\parbox{\textwidth}{
30 30
  \parbox[b]{.42\textwidth}{%
31 31
    <%company%>
32
    
32

  
33 33
    <%address%>
34 34
  }\hfill
35 35
  \begin{tabular}[b]{rr@{}}
......
40 40
  \rule[1.5ex]{\textwidth}{0.5pt}
41 41
}
42 42

  
43
 
44
<%pagebreak 90 27 37%>
45
\end{tabularx}
46

  
47
\newpage
48

  
49
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
50

  
51
\vspace*{-12pt}
52

  
53
\begin{tabularx}{\textwidth}{@{}rlXllrrll@{}}
54
  \textbf{Pos} & \textbf{Nummer} & \textbf{Beschreibung} & \textbf{Seriennummer} & & \textbf{Menge} & \textbf{Erh} & & \textbf{Lagerplatz} \\
55
<%end pagebreak%>
56

  
57

  
58 43
\vspace*{0.5cm}
59 44

  
60 45
\parbox[t]{1cm}{\hfill}
templates/print/RB/credit_note.tex
74 74

  
75 75
%
76 76
% - longtable kann innerhalb der Tabelle umbrechen
77
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
78
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
79
%   <%pagebreak ... %> verwenden)
77
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
78
%   Übertrag machen
80 79
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
81 80
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
82 81
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
templates/print/RB/invoice.tex
75 75

  
76 76
%
77 77
% - longtable kann innerhalb der Tabelle umbrechen
78
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
79
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
80
%   <%pagebreak ... %> verwenden)
78
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
79
%   Übertrag machen
81 80
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
82 81
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
83 82
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
117 116
          <%runningnumber%> &
118 117
          <%number%> &
119 118
          \textbf{<%description%>} &
120
          \raggedleft <%qty%> <%unit%> & 
119
          \raggedleft <%qty%> <%unit%> &
121 120
          <%sellprice%> \currency &
122 121
          \ifthenelse{\equal{<%p_discount%>}{0}}{}{\sffamily\scriptsize{(-<%p_discount%> \%)}}
123 122
          \ourfont{<%linetotal%> \currency} \\*  % kein Umbruch nach der ersten Zeile, damit Beschreibung und Langtext nicht getrennt werden
templates/print/RB/pick_list.tex
30 30
\parbox{\textwidth}{
31 31
  \parbox[b]{.42\textwidth}{
32 32
    <%company%>
33
    
33

  
34 34
    <%address%>
35 35
  }\hfill
36 36
  \begin{tabular}[b]{rr@{}}
......
41 41
  \rule[1.5ex]{\textwidth}{0.5pt}
42 42
}
43 43

  
44
 
45
<%pagebreak 90 27 37%>
46
\end{tabular*}
47

  
48
\newpage
49

  
50
\markboth{<%company%>\hfill <%ordnumber%>}{<%company%>\hfill <%ordnumber%>}
51

  
52
\vspace*{-12pt}
53

  
54
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}}
55
  \textbf{Pos} & \textbf{Nummer} & \textbf{Beschreibung} &
56
  \textbf{Menge} & \textbf{Lagerausgang} & & \textbf{Lagerplatz} \\
57
<%end pagebreak%>
58

  
59

  
60 44
\vspace*{0.5cm}
61 45

  
62 46
\parbox[t]{1cm}{\hfill}
templates/print/RB/purchase_delivery_order.tex
50 50

  
51 51
%
52 52
% - longtable kann innerhalb der Tabelle umbrechen
53
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
54
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
55
%   <%pagebreak ... %> verwenden)
53
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
54
%   Übertrag machen
56 55
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
57 56
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
58 57
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
92 91
          <%if reqdate%> && \scriptsize \lieferdatum: <%reqdate%>\\<%end reqdate%>
93 92
          <%if serialnumber%> && \scriptsize \seriennummer: <%serialnumber%>\\<%end serialnumber%>
94 93
          <%if ean%> && \scriptsize \ean: <%ean%>\\<%end ean%>
95
          <%foreach si_number%><%if si_number%> && \scriptsize \charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%> <%si_qty%>~<%si_unit%><%end si_chargenumber%>\\<%end si_number%> 
94
          <%foreach si_number%><%if si_number%> && \scriptsize \charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%> <%si_qty%>~<%si_unit%><%end si_chargenumber%>\\<%end si_number%>
96 95

  
97 96
          \\[-0.8em]
98 97
<%end number%>
templates/print/RB/purchase_order.tex
61 61

  
62 62
%
63 63
% - longtable kann innerhalb der Tabelle umbrechen
64
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
65
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
66
%   <%pagebreak ... %> verwenden)
64
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
65
%   Übertrag machen
67 66
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
68 67
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
69 68
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
101 100
% eigentliche Tabelle
102 101
<%foreach number%>
103 102
          <%runningnumber%> &
104
          \raggedleft <%qty%> <%unit%> & 
103
          \raggedleft <%qty%> <%unit%> &
105 104
          \textbf{<%description%>} &
106 105
          <%sellprice%> \currency &
107 106
          \ifthenelse{\equal{<%p_discount%>}{0}}{}{\sffamily\scriptsize{(-<%p_discount%> \%)}}
templates/print/RB/request_quotation.tex
57 57

  
58 58
%
59 59
% - longtable kann innerhalb der Tabelle umbrechen
60
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
61
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
62
%   <%pagebreak ... %> verwenden)
60
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
61
%   Übertrag machen
63 62
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
64 63
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
65 64
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
102 101
              \ifthenelse{\equal{<%make%>}{<%name%>}}{&& \artikelnummer: <%model%>\\}{}
103 102
            <%end foreach%>
104 103
          <%end if%>
105
  
104

  
106 105
          \\[-0.8em]
107 106
<%end number%>
108 107

  
templates/print/RB/sales_delivery_order.tex
60 60

  
61 61
%
62 62
% - longtable kann innerhalb der Tabelle umbrechen
63
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
64
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
65
%   <%pagebreak ... %> verwenden)
63
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
64
%   Übertrag machen
66 65
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
67 66
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
68 67
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
103 102
          <%if serialnumber%> && \scriptsize \seriennummer: <%serialnumber%>\\<%end serialnumber%>
104 103
          <%if ean%> && \scriptsize \ean: <%ean%>\\<%end ean%>
105 104
          <%if projectnumber%> && \scriptsize \projektnummer: <%projectnumber%>\\<%end projectnumber%>
106
          <%foreach si_number%><%if si_number%> && \scriptsize \charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%> <%si_qty%>~<%si_unit%><%end si_chargenumber%>\\<%end si_number%> 
107
  
105
          <%foreach si_number%><%if si_number%> && \scriptsize \charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%> <%si_qty%>~<%si_unit%><%end si_chargenumber%>\\<%end si_number%>
106

  
108 107
          \\[-0.8em]
109 108
<%end number%>
110 109

  
templates/print/RB/sales_order.tex
71 71

  
72 72
%
73 73
% - longtable kann innerhalb der Tabelle umbrechen
74
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
75
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
76
%   <%pagebreak ... %> verwenden)
74
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
75
%   Übertrag machen
77 76
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
78 77
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
79 78
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
113 112
          <%runningnumber%> &
114 113
          <%number%> &
115 114
          \textbf{<%description%>} &
116
          \raggedleft <%qty%> <%unit%> & 
115
          \raggedleft <%qty%> <%unit%> &
117 116
          <%sellprice%> \currency &
118 117
          \ifthenelse{\equal{<%p_discount%>}{0}}{}{\sffamily\scriptsize{(-<%p_discount%> \%)}}
119 118
          \ourfont{<%linetotal%> \currency} \\*  % kein Umbruch nach der ersten Zeile, damit Beschreibung und Langtext nicht getrennt werden
templates/print/RB/sales_quotation.tex
67 67

  
68 68
%
69 69
% - longtable kann innerhalb der Tabelle umbrechen
70
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
71
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
72
%   <%pagebreak ... %> verwenden)
70
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
71
%   Übertrag machen
73 72
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen.
74 73
%   Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu:
75 74
%   http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf)
......
109 108
          <%runningnumber%> &
110 109
          <%number%> &
111 110
          \textbf{<%description%>} &
112
          \raggedleft <%qty%> <%unit%> & 
111
          \raggedleft <%qty%> <%unit%> &
113 112
          <%sellprice%> \currency &
114 113
          \ifthenelse{\equal{<%p_discount%>}{0}}{}{\sffamily\scriptsize{(-<%p_discount%> \%)}}
115 114
          \ourfont{<%linetotal%> \currency} \\*  % kein Umbruch nach der ersten Zeile, damit Beschreibung und Langtext nicht getrennt werden
templates/print/RB/statement.tex
57 57

  
58 58
%
59 59
% - longtable kann innerhalb der Tabelle umbrechen
60
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man kein
61
%   Übertrag mit <%sumcarriedforward%> machen (dazu z.B. tablularx und
62
%   <%pagebreak ... %> verwenden)
60
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen
61
%   Übertrag machen
63 62
%
64 63
\setlength\LTleft\parindent     % Tabelle beginnt am linken Textrand
65 64
\setlength\LTright{0pt}         % Tabelle endet am rechten Textrand
templates/print/Service/invoice.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%invnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rlrr@{}}
64
  \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
66
  & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{2cm}
templates/print/Service/purchase_order.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%ordnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
64
  \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
66
  & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{2cm}
templates/print/Service/sales_order.tex
26 26
  \parbox{\textwidth}{
27 27
    \parbox[b]{12cm}{
28 28
      <%company%>
29
      
29

  
30 30
      <%address%>}\hfill
31 31
    \begin{tabular}[b]{rr@{}}
32 32
    Telephone & <%tel%>\\
......
36 36
    \rule[1.5ex]{\textwidth}{0.5pt}
37 37
  }
38 38
}
39
    
39

  
40 40
\fontfamily{cmss}\fontshape{n}\selectfont
41 41

  
42 42
\markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
......
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
49

  
50
  \rule{\textwidth}{2pt}
51
  
52
  \hfill
53
  \begin{tabularx}{7cm}{Xr@{}}
54
  \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55
  \end{tabularx}
56

  
57
\newpage
58

  
59
\markright{<%company%>\hfill <%ordnumber%>}
60

  
61
\vspace*{-12pt}
62

  
63
\begin{tabular*}{\textwidth}{@{}p{\descrwidth}@{\extracolsep\fill}rlrr@{}}
64
  \textbf{Description} & \textbf{Qt'y} &
65
    \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
66
  & carried forward from <%lastpage%> & & & <%sumcarriedforward%> \\
67
<%end pagebreak%>
68

  
69

  
70 47
\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71 48

  
72 49
\vspace*{2cm}
templates/print/Service/statement.tex
44 44
\pagestyle{myheadings}
45 45
%\thispagestyle{empty}     use this with letterhead paper
46 46

  
47
<%pagebreak 90 27 48%>
48
\end{tabular*}
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff