iOS: Einzelstuecke beim Einlagern als Exemplare anlegen (Bestand zaehlt jetzt)
Beim Einlagern lief auch ein Einzelstueck-Produkt durch den Charge-Weg (CheckInFormView -> Lot). Einzelstuecke zaehlen aber Items, nicht Lots - der Bestand blieb 0. Im Einlagern-Ablauf werden Einzelstueck-Produkte jetzt ueber ItemAddSheet als physische Exemplare (UID/QR) angelegt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -131,12 +131,20 @@ struct CheckInView: View {
|
||||
}
|
||||
.sheet(item: $product) { item in
|
||||
NavigationStack {
|
||||
if item.isIndividual {
|
||||
// Einzelstücke werden nicht als Charge eingelagert, sondern als
|
||||
// physische Exemplare (UID/QR) angelegt – die zählen den Bestand.
|
||||
ItemAddSheet(productId: item.id, onDone: {
|
||||
status = "\(item.name): Einzelstück(e) angelegt."
|
||||
})
|
||||
} else {
|
||||
CheckInFormView(product: item, units: units, locations: locations) { message in
|
||||
status = message
|
||||
product = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sheet(item: $scannedItem) { it in
|
||||
NavigationStack { ItemEditView(item: it) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user