fix(item-form): kcal-Label dynamisch wie Preis-Label (abhängig von #114) #115
Labels
No labels
block-planning
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
infrastructure
invalid
planning
priority:high
priority:low
question
refactoring
status:backlog
status:done
status:in-progress
status:todo
tech-decision
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: bollwerkadmin/bollwerk#115
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Anforderung
Das Label des kcal-Felds im Item-Formular soll wie das Preis-Label dynamisch die gewählte Einheit anzeigen.
Aktuell:
"kcal / Einheit"Neu:
"kcal pro Stück","kcal pro kg","kcal pro Flasche"usw.Abhängigkeit
Dieses Ticket baut auf #114 (Einheit-Dropdown) auf. Die
effectiveUnit-Logik (gewählte Einheit oder Custom-Text) wird dort eingeführt und kann hier direkt wiederverwendet werden.Implementierung erst nach oder zusammen mit #114 sinnvoll.
Umsetzung
In
ItemFormScreen.kt, beim kcal-Feld:effectiveUnitist dieselbe Variable/Logik wie beim Preis-Label aus #114:"kg")"Einheit"(Fallback)Betroffene Dateien
ItemFormScreen.ktAbnahme-Kriterien
"kcal pro kg","kcal pro Flasche"usw."kcal pro Einheit"