From a43af8ab8614ae37d2f76fd4fb74ede7ca9f44bd Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 7 Aug 2024 14:09:17 +0200 Subject: [PATCH] Print ticket-number on ticket --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 55b3e0d..a37f71a 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -726,7 +726,8 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHashfromUnicode(currentDateString); memcpy((char*)dynTicketData->currentDate, ba_currentDate.data(), std::min(ba_currentDate.size(),8)); + // Ticket-Number + QByteArray ba_ticketNumber = codec->fromUnicode(printingData["ticketNumber"].toString()); + memcpy((char*)dynTicketData->dynDat7, ba_ticketNumber.data(), std::min(ba_ticketNumber.size(),8)); + // DEBUG /* @@ -791,7 +796,8 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHashonPrintFinishedERR();