projects
/
misc
/
hallinta-metro
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c52807a
)
Improve LaTeX code and add corridor number for all items
author
Joey Schulze
<joey@infodrom.org>
Thu, 14 Mar 2013 13:42:51 +0000
(14:42 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 14 Mar 2013 13:43:34 +0000
(14:43 +0100)
ordersatz.tex
patch
|
blob
|
history
utils.php
patch
|
blob
|
history
diff --git
a/ordersatz.tex
b/ordersatz.tex
index
a07cd48
..
9790a0b
100644
(file)
--- a/
ordersatz.tex
+++ b/
ordersatz.tex
@@
-35,8
+35,8
@@
\renewcommand{\headtoname}[0]{Kundenordersatz (\reise)}
\renewcommand{\headtoname}[0]{Kundenordersatz (\reise)}
-\newcommand{\order}[
4
]{%
-#2 & #3 & #4 & #1\\ \hline
+\newcommand{\order}[
5
]{%
+#2 & #3 & #
5 & #
4 & #1\\ \hline
}
}
@@
-67,13
+67,13
@@
Bitte die Waren noch nicht durch die Kasse ziehen.
\tablefirsthead{%
\hline
\tablefirsthead{%
\hline
-\textbf{ArtNr} & \textbf{Artikelbezeichnung} & \textbf{
VPE} & \textbf{Menge
}\\
+\textbf{ArtNr} & \textbf{Artikelbezeichnung} & \textbf{
Gang} & \textbf{VPE} & \textbf{Anz.
}\\
\hline
}
\tablehead{%
\hline
\hline
}
\tablehead{%
\hline
-\textbf{ArtNr} & \textbf{Artikelbezeichnung} & \textbf{
VPE} & \textbf{Menge
}\\
+\textbf{ArtNr} & \textbf{Artikelbezeichnung} & \textbf{
Gang} & \textbf{VPE} & \textbf{Anz.
}\\
\hline
}
\hline
}
@@
-81,7
+81,7
@@
Bitte die Waren noch nicht durch die Kasse ziehen.
\hline
}
\hline
}
-\begin{supertabular}{|l|p{11.8cm}|
r
|r|}
+\begin{supertabular}{|l|p{11.8cm}|
c|c
|r|}
\input ordersatz_items
\end{supertabular}
\input ordersatz_items
\end{supertabular}
diff --git
a/utils.php
b/utils.php
index
a56b1db
..
016f15b
100644
(file)
--- a/
utils.php
+++ b/
utils.php
@@
-164,12
+164,13
@@
function ordersatz_write($id, $dir, $send)
if (strlen($row['hinweis']))
$bez .= sprintf("\\newline\\textbf{%s}", latex_encode($row['hinweis']));
if (strlen($row['hinweis']))
$bez .= sprintf("\\newline\\textbf{%s}", latex_encode($row['hinweis']));
- fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}'."\n",
+ fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}
{%s}
'."\n",
$row['anzahl'],
$row['artnr'] ? (int)$row['artnr'] : '',
latex_encode($row['menge']),
$bez,
$row['anzahl'],
$row['artnr'] ? (int)$row['artnr'] : '',
latex_encode($row['menge']),
$bez,
- latex_encode($row['vpname'])));
+ latex_encode($row['vpname']),
+ latex_encode($row['gang'])));
}
fclose($f);
}
fclose($f);
@@
-214,4
+215,4
@@
function ordersatz_write($id, $dir, $send)
return true;
}
return true;
}
-?>
\ No newline at end of file
+?>