mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-04-01 19:10:23 +02:00
Bugfixes projekt preview and files list
This commit is contained in:
parent
3dc55afd69
commit
e201f50b00
@ -3911,14 +3911,20 @@ url:strUrl, success:function(html){strReturn = html;}, async:false
|
|||||||
// alle artikel die ein Kunde kaufen kann mit preisen netto brutto
|
// alle artikel die ein Kunde kaufen kann mit preisen netto brutto
|
||||||
$cmd = $this->app->Secure->GetGET('smodule');
|
$cmd = $this->app->Secure->GetGET('smodule');
|
||||||
$adresse = 0;
|
$adresse = 0;
|
||||||
|
|
||||||
if(!empty($cmd) && $id > 0){
|
if(!empty($cmd) && $id > 0){
|
||||||
$adresse = $this->app->DB->Select(
|
|
||||||
sprintf(
|
if ($this->app->DB->Select("SHOW columns FROM `$cmd` LIKE 'adresse'")) {
|
||||||
'SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',
|
|
||||||
$cmd, (int)$id
|
$adresse = $this->app->DB->Select(
|
||||||
)
|
sprintf(
|
||||||
);
|
'SELECT adresse FROM `%s` WHERE id=%d LIMIT 1',
|
||||||
}
|
$cmd, (int)$id
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$sortmodus = $this->TableSearchFilter($name, 1, 'sortmodus', 0,0, 'checkbox');
|
$sortmodus = $this->TableSearchFilter($name, 1, 'sortmodus', 0,0, 'checkbox');
|
||||||
// headings
|
// headings
|
||||||
$heading = array('','','','Titel', 'Stichwort', 'Version','Größe', 'Ersteller','Version','Datum','Sortierung','Menü');
|
$heading = array('','','','Titel', 'Stichwort', 'Version','Größe', 'Ersteller','Version','Datum','Sortierung','Menü');
|
||||||
|
@ -3282,7 +3282,7 @@ class Projekt extends GenProjekt {
|
|||||||
$id = $this->app->Secure->GetGET('id');
|
$id = $this->app->Secure->GetGET('id');
|
||||||
|
|
||||||
$arbeitsschritttabelle = new EasyTable($this->app);
|
$arbeitsschritttabelle = new EasyTable($this->app);
|
||||||
$arbeitsschritttabelle->Query("SELECT p.belegnr AS produktion, pa.sort AS nr, pa.name AS arbeitsanweisung, ag.bezeichnung,
|
$arbeitsschritttabelle->Query("SELECT p.belegnr AS produktion, pa.sort AS nr, pa.name AS arbeitsanweisung, '',
|
||||||
a.name AS 'geplanter Mitarbeiter',
|
a.name AS 'geplanter Mitarbeiter',
|
||||||
CONCAT(
|
CONCAT(
|
||||||
IF(pa.einzelzeit >= 3600,
|
IF(pa.einzelzeit >= 3600,
|
||||||
@ -3296,7 +3296,6 @@ class Projekt extends GenProjekt {
|
|||||||
) as einzelzeit, pa.status
|
) as einzelzeit, pa.status
|
||||||
FROM produktion_arbeitsanweisung pa
|
FROM produktion_arbeitsanweisung pa
|
||||||
LEFT JOIN adresse a ON pa.geplanter_mitarbeiter = a.id
|
LEFT JOIN adresse a ON pa.geplanter_mitarbeiter = a.id
|
||||||
LEFT JOIN arbeitsplatzgruppen ag ON pa.arbeitsplatzgruppe = ag.id
|
|
||||||
JOIN produktion p ON pa.produktion = p.id
|
JOIN produktion p ON pa.produktion = p.id
|
||||||
WHERE pa.status = 'gestartet' AND p.projekt = '$id' AND p.status = 'gestartet'
|
WHERE pa.status = 'gestartet' AND p.projekt = '$id' AND p.status = 'gestartet'
|
||||||
ORDER BY p.id, pa.sort");
|
ORDER BY p.id, pa.sort");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user