Merge branch 'master' into merge_FHC4_C4

This commit is contained in:
Harald Bamberger
2025-02-19 14:24:14 +01:00
@@ -264,6 +264,7 @@ for ($i = 0; $i < count($ztaufdata); $i++)
{
$phasetoadd = new stdClass();
$phasetoadd->bezeichnung = $ppitem->bezeichnung;
$phasetoadd->beschreibung = $ppitem->beschreibung;
$phasetoadd->stunden = 0;
$phasetoadd->alleZeiten = array();
@@ -276,8 +277,8 @@ for ($i = 0; $i < count($ztaufdata); $i++)
$projektphasen[$ppitem->projektphase_id] = $phasetoadd;
//add new projektphase to array with unique projekt phase names
if (!in_array($ppitem->bezeichnung, $projektphasenames[$ztaufrow->projekt_kurzbz]))
$projektphasenames[$ztaufrow->projekt_kurzbz][] = $ppitem->bezeichnung;
if (!in_array($ppitem->beschreibung, $projektphasenames[$ztaufrow->projekt_kurzbz]))
$projektphasenames[$ztaufrow->projekt_kurzbz][] = $ppitem->beschreibung;
}
}
@@ -407,7 +408,7 @@ for ($i = 0; $i < count($ztaufdata); $i++)
$projektmonthsums[$name]->sum += $projekthours;
foreach ($projekt->projektphasen as $projektphase)
{
$projektmonthsums[$name]->projektphasen[$projektphase->bezeichnung] += round($projektphase->stunden, 2, 0);
$projektmonthsums[$name]->projektphasen[$projektphase->beschreibung] += round($projektphase->stunden, 2, 0);
}
}
else
@@ -418,7 +419,7 @@ for ($i = 0; $i < count($ztaufdata); $i++)
foreach ($projekt->projektphasen as $projektphase)
{
$monthsum->projektphasen[$projektphase->bezeichnung] = round($projektphase->stunden, 2, 0);
$monthsum->projektphasen[$projektphase->beschreibung] = round($projektphase->stunden, 2, 0);
}
$projektmonthsums[$name] = $monthsum;
}