Zeiterfassung Fahrzeugverwaltung neue Features:

* KM-Stand History
* Journal
* Neue Felder
This commit is contained in:
Daniel Spitzer
2025-03-16 10:05:13 +01:00
parent 7865db049b
commit 3c1e864580
3 changed files with 11 additions and 5 deletions

View File

@@ -77,12 +77,12 @@ class TimerecordingCarJournalModel
}
public static function getFirst()
public static function getFirst($filter)
{
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
$res = $db->select("TimerecordingCarJournal", "*", "$where ");
$res = $db->select("TimerecordingCarJournal", "*", "$where ORDER by timestamp DESC LIMIT 1");
if ($db->num_rows($res)) {
$data = $db->fetch_object($res);
$item = new TimerecordingCarJournal($data);