iOS: Produktliste - Kategoriefilter nach Typ + Sortierung

Kategoriefilter zeigt nur noch Kategorien des Listentyps (Lebensmittel-Liste nur
Food-Kategorien, Gegenstaende-Liste nur Objekt-Kategorien) - vorher konnte man
sinnlos ueberkreuz filtern. Neue Sortierung (Name A-Z/Z-A, Zuletzt geaendert)
per Menue-Picker; Product traegt dafuer updated_at.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-28 13:43:44 +02:00
parent d029c882f1
commit 4f8e6e3185
2 changed files with 41 additions and 4 deletions

View File

@@ -82,10 +82,13 @@ struct Product: Codable, Identifiable, Hashable {
let bulk: Bool?
/// Mindestbestand je Lagerort (zusaetzlich zum globalen Mindestbestand).
let locationMinStocks: [LocationMinStock]?
/// Zeitpunkt der letzten Änderung (ISO-String), zum Sortieren Zuletzt geändert".
let updatedAt: String?
enum CodingKeys: String, CodingKey {
case id, barcode, name, brand, stock, kind, barcodes, tracking, individual, bulk
case locationMinStocks = "location_min_stocks"
case updatedAt = "updated_at"
case datePrecision = "date_precision"
case categoryId = "category_id"
case categoryName = "category_name"