mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
#3936 - Kundenbestellung Leere Edit Seite
(cherry picked from commit 83406277ad)
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user