mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
gehaltsbestandteil chart data: spezialfall neuer Gehaltsbestandteil und sofort valorisiert
This commit is contained in:
@@ -286,7 +286,13 @@ EOSQL;
|
|||||||
foreach( $rows as $row ) {
|
foreach( $rows as $row ) {
|
||||||
$tmpgb = new Gehaltsbestandteil();
|
$tmpgb = new Gehaltsbestandteil();
|
||||||
$tmpgb->hydrateByStdClass($row, true);
|
$tmpgb->hydrateByStdClass($row, true);
|
||||||
|
|
||||||
|
if ($row->betrag_valorisiert != null && $row->valorisierungsdatum != null
|
||||||
|
&& $row->valorisierungsdatum == $row->von) {
|
||||||
|
// neuer Gehaltsbestandteil mit Valorisierungsdatum aber auch valorisiert
|
||||||
|
$tmpgb->setGrundbetrag($row->betrag_valorisiert);
|
||||||
|
}
|
||||||
|
|
||||||
// prevent duplication (caused by the join with historic values)
|
// prevent duplication (caused by the join with historic values)
|
||||||
if (!isset($lastRecords[(string)$row->gehaltsbestandteil_id])) {
|
if (!isset($lastRecords[(string)$row->gehaltsbestandteil_id])) {
|
||||||
$gehaltsbestandteile[] = $tmpgb;
|
$gehaltsbestandteile[] = $tmpgb;
|
||||||
|
|||||||
Reference in New Issue
Block a user