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,9 +131,17 @@ struct CheckInView: View {
|
|||||||
}
|
}
|
||||||
.sheet(item: $product) { item in
|
.sheet(item: $product) { item in
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
CheckInFormView(product: item, units: units, locations: locations) { message in
|
if item.isIndividual {
|
||||||
status = message
|
// Einzelstücke werden nicht als Charge eingelagert, sondern als
|
||||||
product = nil
|
// 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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user