From: Joey Schulze Date: Sun, 22 Dec 2013 12:04:15 +0000 (+0100) Subject: Merge branches 'buttons', 'numeric' and 'pdflatex' X-Git-Url: https://git.infodrom.org/?p=misc%2Fhallinta-metro;a=commitdiff_plain;h=7c4605897a5784608744e2e99682ac7f730445f6;hp=ab22d55339590dda83419c49984f0e8ec011f400 Merge branches 'buttons', 'numeric' and 'pdflatex' --- diff --git a/artikel.php b/artikel.php index ad35a0d..aa135b0 100644 --- a/artikel.php +++ b/artikel.php @@ -130,6 +130,8 @@ $mask = array( 'artnr' => array( 'name' => 'ArtNr', 'width' => 60, + 'type' => 'number', + 'specs' => "decPlaces: 0, thouSep: '', filterUI: 't='", ), 'menge' => array( 'name' => 'Menge', diff --git a/utils.php b/utils.php index 7ad39ac..9e5e005 100644 --- a/utils.php +++ b/utils.php @@ -177,7 +177,7 @@ function ordersatz_write($id, $dir, $send) fclose($f); - system("latex ordersatz > ordersatz.out 2>&1 && dvips ordersatz >> ordersatz.out 2>&1 && ps2pdf ordersatz.ps", $ret); + system("latex ordersatz > ordersatz.out 2>&1 && dvips ordersatz >> ordersatz.out 2>&1 && pdflatex ordersatz >> ordersatz.out", $ret); if ($ret !== 0) { $fname = sprintf("ordersatz-%d-%d.tar.bz2", $id, time()); @@ -185,7 +185,7 @@ function ordersatz_write($id, $dir, $send) "mail -s 'Probleme beim Compilieren des Ordersatzes %d' %s < %s && " . "sendfile -Q -c='Probleme beim Compilieren des Ordersatzes %d' %s %s", $fname, - $id, ERROR_MAIL, $fname + $id, ERROR_MAIL, $fname, $id, $fname, ERROR_SAFT); system($cmd); return "Probleme beim Compilieren des Ordersatzes";