Merged PR 1260: #2737 Bei Zubuchen kein Abholfachzettel ausdrucken

#2737 Bei Zubuchen kein Abholfachzettel ausdrucken

Related work items: #2737
This commit is contained in:
Andreas Schickinger
2022-05-30 08:37:19 +00:00
committed by Lorenz Hilpert
parent efdc365b90
commit 2983d5a068

View File

@@ -154,6 +154,12 @@ export class SharedGoodsInOutOrderDetailsComponent extends SharedGoodsInOutOrder
return;
}
// #2737 Bei Zubuchen kein Abholfachzettel ausdrucken
let command = action.command;
if (compartmentCode) {
command = action.command.replace('|PRINT_COMPARTMENTLABEL', '');
}
this.changeActionLoader$.next(action.command);
this.changeActionDisabled$.next(true);
@@ -165,7 +171,7 @@ export class SharedGoodsInOutOrderDetailsComponent extends SharedGoodsInOutOrder
receipts: this.receipts,
};
try {
commandData = await this.commandService.handleCommand(action.command, commandData);
commandData = await this.commandService.handleCommand(command, commandData);
let navigateTo: 'details' | 'main' | 'reservation' = 'details';
if (action.command.includes('ARRIVED')) {
navigateTo = await this.arrivedActionNavigation();