Zeiterfassung Fahrzeugverwaltung neue Features:
* KM-Stand History * Journal * Neue Felder
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user