Merged PR 1186: #3032 AHF Routing Fix

#3032 AHF Routing Fix

Related work items: #3032
This commit is contained in:
Andreas Schickinger
2022-04-20 16:54:11 +00:00
committed by Lorenz Hilpert
parent f657a088d4
commit 146ad7b20a
2 changed files with 12 additions and 2 deletions

View File

@@ -135,11 +135,16 @@ export class GoodsInRemissionPreviewComponent implements OnInit, OnDestroy {
}
navigateToDetails(orderItem: OrderItemListItemDTO) {
const customerNumber = orderItem.buyerNumber;
const orderNumber = orderItem.orderNumber;
const processingStatus = orderItem.processingStatus;
const orderItemId = orderItem.orderItemId;
this._router.navigate([`/filiale/goods/in/details/order/${encodeURIComponent(orderNumber)}/item/${orderItemId}/${processingStatus}`]);
this._router.navigate([
`/filiale/goods/in/details/customer/${encodeURIComponent(customerNumber)}/order/${encodeURIComponent(
orderNumber
)}/item/${orderItemId}/${processingStatus}`,
]);
}
async handleAction(action: KeyValueDTOOfStringAndString) {

View File

@@ -135,11 +135,16 @@ export class GoodsInReservationComponent implements OnInit, OnDestroy {
}
navigateToDetails(orderItem: OrderItemListItemDTO) {
const customerNumber = orderItem.buyerNumber;
const orderNumber = orderItem.orderNumber;
const processingStatus = orderItem.processingStatus;
const orderItemId = orderItem.orderItemId;
this._router.navigate([`/filiale/goods/in/details/order/${encodeURIComponent(orderNumber)}/item/${orderItemId}/${processingStatus}`]);
this._router.navigate([
`/filiale/goods/in/details/customer/${encodeURIComponent(customerNumber)}/order/${encodeURIComponent(
orderNumber
)}/item/${orderItemId}/${processingStatus}`,
]);
}
initInitialSearch() {