projects
/
misc
/
kostenrechnung
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c06cbe
)
Sort details before building the table body
author
Joey Schulze
<joey@infodrom.org>
Wed, 10 Mar 2010 15:31:21 +0000
(16:31 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 10 Mar 2010 15:31:21 +0000
(16:31 +0100)
masks/materialverbrauch.php
patch
|
blob
|
history
diff --git
a/masks/materialverbrauch.php
b/masks/materialverbrauch.php
index
9855fc1
..
0e4cb00
100644
(file)
--- a/
masks/materialverbrauch.php
+++ b/
masks/materialverbrauch.php
@@
-24,7
+24,8
@@
function fetch_tbody()
$sql = 'SELECT materialien.material,menge,einheiten.einheit FROM materialverbrauch '
. 'JOIN materialien ON materialverbrauch.material = materialien.id '
. 'JOIN einheiten ON materialien.einheit = einheiten.id '
$sql = 'SELECT materialien.material,menge,einheiten.einheit FROM materialverbrauch '
. 'JOIN materialien ON materialverbrauch.material = materialien.id '
. 'JOIN einheiten ON materialien.einheit = einheiten.id '
- . 'WHERE einsatz = ' . intval($_POST['id']);
+ . 'WHERE einsatz = ' . intval($_POST['id']) . ' '
+ . 'ORDER BY materialien.material';
$data = query_db($sql);
$data = query_db($sql);