#3617 CompartmentLabel für Kunden zwischenhspeichern

This commit is contained in:
Lorenz Hilpert
2022-11-11 10:56:18 +01:00
parent f5ac916663
commit c7e444d446

View File

@@ -220,6 +220,8 @@ export class GoodsInReservationComponent implements OnInit, OnDestroy {
return acc;
}, {});
let compartmentCode: string;
for (const command of Object.keys(itemsToUpdateGroupedByCommand)) {
const itemsToUpdateForCommand = itemsToUpdateGroupedByCommand[command];
const itemQuantity = new Map(itemsToUpdateForCommand.map((item) => [item.orderItemSubsetId, item.quantity]));
@@ -228,9 +230,11 @@ export class GoodsInReservationComponent implements OnInit, OnDestroy {
items: itemsToUpdateForCommand,
shippingDelayComment: `Aktion: ${action.label}`,
itemQuantity,
compartmentCode,
};
await this._commandService.handleCommand(command, data);
const result = await this._commandService.handleCommand(command, data);
compartmentCode = result.compartmentCode;
}
}
this._store.reload();