Merged PR 1248: #2877 Preisunterschied Menge wird pro Item übergeben

#2877 Preisunterschied Menge wird pro Item übergeben

Related work items: #2877
This commit is contained in:
Andreas Schickinger
2022-05-23 09:14:24 +00:00
committed by Lorenz Hilpert
parent 007ea92bd5
commit c762871cce
2 changed files with 7 additions and 4 deletions

View File

@@ -60,13 +60,11 @@ export class PrintPriceDiffQrCodeLabelActionHandler extends ActionHandler<OrderI
ean: item.product?.ean,
price: item.retailPrice?.value,
title: item.product?.name,
copies: data.itemQuantity?.get(item.orderItemSubsetId) || item?.quantity,
} as PriceQRCodeDTO;
});
const item = data.items?.find((_) => true);
const copies = data.itemQuantity?.get(item.orderItemSubsetId) || item?.quantity;
const response = await this.domainPrinterService.printQrCode({ printer, copies, data: payload }).toPromise();
const response = await this.domainPrinterService.printQrCode({ printer, data: payload }).toPromise();
if (!!response?.error) {
this.uiModal.open({
content: UiErrorModalComponent,

View File

@@ -16,6 +16,11 @@ export interface PriceQRCodeDTO {
*/
compartmentInfo?: string;
/**
* Anzahl Ausdrucke
*/
copies?: number;
/**
* EAN
*/