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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user