From 73e03ba901fac14ce9f4813682cb59ac56d60883 Mon Sep 17 00:00:00 2001 From: Werner Masik Date: Wed, 15 Apr 2026 10:44:03 +0200 Subject: [PATCH] =?UTF-8?q?Gehaltstyp=20=C3=9Cberstundenpauschale=20und=20?= =?UTF-8?q?Sachbezug=20PKW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/dbupdate_3.4/70376_lohnguide.php | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/system/dbupdate_3.4/70376_lohnguide.php b/system/dbupdate_3.4/70376_lohnguide.php index 61486b10d..2c1eb1845 100644 --- a/system/dbupdate_3.4/70376_lohnguide.php +++ b/system/dbupdate_3.4/70376_lohnguide.php @@ -367,4 +367,58 @@ if ($result = $db->db_query("SELECT * FROM information_schema.columns WHERE colu } } + +if ($result = $db->db_query("SELECT * FROM hr.tbl_gehaltstyp WHERE gehaltstyp_kurzbz='ueberstundenpauschale'")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = " + INSERT INTO hr.tbl_gehaltstyp + (gehaltstyp_kurzbz, bezeichnung, valorisierung, sort, aktiv, lvexport) + VALUES + ('ueberstundenpauschale','Überstundenpauschale', true, 8, true); + "; + + if (! $db->db_query($qry)) + echo 'Gehaltstyp: ' . $db->db_last_error() . '
'; + else + echo 'Gehaltstyp "Überstundenpauschale" erstellt.
'; + } +} + +if ($result = $db->db_query("SELECT * FROM hr.tbl_gehaltstyp WHERE gehaltstyp_kurzbz='ueberstundenpauschale'")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = " + INSERT INTO hr.tbl_gehaltstyp + (gehaltstyp_kurzbz, bezeichnung, valorisierung, sort, aktiv, lvexport) + VALUES + ('ueberstundenpauschale','Überstundenpauschale', true, 8, true, true); + "; + + if (! $db->db_query($qry)) + echo 'Gehaltstyp: ' . $db->db_last_error() . '
'; + else + echo 'Gehaltstyp "Überstundenpauschale" erstellt.
'; + } +} + +if ($result = $db->db_query("SELECT * FROM hr.tbl_gehaltstyp WHERE gehaltstyp_kurzbz='sachbezug_pkw'")) +{ + if ($db->db_num_rows($result) == 0) + { + $qry = " + INSERT INTO hr.tbl_gehaltstyp + (gehaltstyp_kurzbz, bezeichnung, valorisierung, sort, aktiv, lvexport) + VALUES + ('sachbezug_pkw','Sachbezug PKW', true, 9, true, true); + "; + + if (! $db->db_query($qry)) + echo 'Gehaltstyp: ' . $db->db_last_error() . '
'; + else + echo 'Gehaltstyp "Sachbezug PKW" erstellt.
'; + } +} \ No newline at end of file