#3936 - Kundenbestellung Leere Edit Seite

(cherry picked from commit 83406277ad)
This commit is contained in:
Lorenz Hilpert
2023-03-28 14:40:49 +02:00
parent 00a6a113c8
commit 4e67b2e8b9
2 changed files with 5 additions and 8 deletions

View File

@@ -188,7 +188,7 @@ export class CustomerOrderDetailsComponent extends ComponentStore<CustomerOrderD
navigateToEditPage(orderItem: OrderItemListItemDTO) {
this._router.navigate([this.getEditPath(orderItem)], {
queryParams: { buyerNumber: orderItem.buyerNumber, archive: this.archive },
queryParams: { orderNumber: orderItem.orderNumber, buyerNumber: orderItem.buyerNumber, archive: this.archive },
});
}

View File

@@ -34,13 +34,10 @@ export class CustomerOrderEditComponent implements OnInit {
buyerNumber$ = this._activatedRoute.queryParams.pipe(map((params) => params.buyerNumber));
items$ = combineLatest([this.orderNumber$, this.compartmentCode$, this.archive$]).pipe(
switchMap(([orderNumber, compartmentCode, archive]) =>
// compartmentCode
// ? this._domainGoodsInService.getWarenausgabeItemByCompartment(compartmentCode, archive)
// : this._domainGoodsInService.getWarenausgabeItemByOrderNumber(orderNumber, archive)
this._domainGoodsInService.getOrderItemsByOrderNumber(orderNumber)
),
items$ = combineLatest([this.orderNumber$, this.compartmentCode$]).pipe(
switchMap(([orderNumber, compartmentCode]) => {
return this._domainGoodsInService.getOrderItemsByOrderNumber(compartmentCode ?? orderNumber);
}),
withLatestFrom(this.processingStatus$, this.buyerNumber$),
map(([response, processingStatus, buyerNumber]) => {
return response.result.filter(