Display personal for einsatz
authorJoey Schulze <joey@infodrom.org>
Wed, 14 Apr 2010 13:52:17 +0000 (15:52 +0200)
committerJoey Schulze <joey@infodrom.org>
Wed, 14 Apr 2010 13:52:17 +0000 (15:52 +0200)
masks/materialverbrauch.php

index 4e76f76..cc79bce 100644 (file)
@@ -104,6 +104,11 @@ $mask = array(
                                            'width' => 230,
                                            'sql' => 'kostenstellen.kostenstelle',
                                            ),
+                             'personal' => array(
+                                           'name' => 'Personal',
+                                           'width' => 230,
+                                           'sql' => "(SELECT name || ', ' || vorname FROM personal JOIN einsatzpersonal ON einsatzpersonal.personal = personal.id WHERE einsatzpersonal.einsatz = einsatz.id LIMIT 1)",
+                                           ),
                              'material' => array(
                                            'name' => 'Material',
                                            'width' => 70,