Zeiterfassung Update

* Fix für BPA stunden Rückgängig
This commit is contained in:
Spi
2024-05-07 16:00:21 +02:00
parent a7bc1ff8a6
commit 1294281b3d
4 changed files with 11 additions and 10 deletions
@@ -76,12 +76,10 @@ class TimerecordingBillingModel
}
public static function getFirst()
public static function getLast()
{
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
$res = $db->select("TimerecordingBilling", "*", "$where ");
$res = $db->select("TimerecordingBilling", "*", "1=1 ORDER BY id DESC LIMIT 1");
if ($db->num_rows($res)) {
$data = $db->fetch_object($res);
$item = new TimerecordingBilling($data);