Printing: set "productText" to dynTicketData.dynDat5
This commit is contained in:
parent
18104b7271
commit
bc595e1c7e
@ -792,6 +792,7 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
|
|||||||
|
|
||||||
qCritical() << "ATBDeviceControllerPlugin::requestPrintTicket( " << endl
|
qCritical() << "ATBDeviceControllerPlugin::requestPrintTicket( " << endl
|
||||||
<< " licenseplate = " << printingData["licenseplate"] << endl
|
<< " licenseplate = " << printingData["licenseplate"] << endl
|
||||||
|
<< " productText = " << printingData["productText"] << endl
|
||||||
<< " amount = " << printingData["amount"] << endl
|
<< " amount = " << printingData["amount"] << endl
|
||||||
<< " parkingEnd = " << printingData["parkingEnd"] << endl
|
<< " parkingEnd = " << printingData["parkingEnd"] << endl
|
||||||
<< " currentDateTime = " << printingData["currentDateTime"] << endl
|
<< " currentDateTime = " << printingData["currentDateTime"] << endl
|
||||||
@ -841,11 +842,14 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
|
|||||||
QByteArray ba_currentDate = codec->fromUnicode(currentDateString);
|
QByteArray ba_currentDate = codec->fromUnicode(currentDateString);
|
||||||
memcpy((char*)dynTicketData->currentDate, ba_currentDate.data(), std::min(ba_currentDate.size(),8));
|
memcpy((char*)dynTicketData->currentDate, ba_currentDate.data(), std::min(ba_currentDate.size(),8));
|
||||||
|
|
||||||
|
// Product-Text
|
||||||
|
QByteArray ba_productText = codec->fromUnicode(printingData["productText"].toString());
|
||||||
|
memcpy((char*)dynTicketData->dynDat5, ba_productText.data(), std::min(ba_productText.size(),8));
|
||||||
|
|
||||||
// Ticket-Number
|
// Ticket-Number
|
||||||
QByteArray ba_ticketNumber = codec->fromUnicode(printingData["ticketNumber"].toString());
|
QByteArray ba_ticketNumber = codec->fromUnicode(printingData["ticketNumber"].toString());
|
||||||
memcpy((char*)dynTicketData->dynDat7, ba_ticketNumber.data(), std::min(ba_ticketNumber.size(),8));
|
memcpy((char*)dynTicketData->dynDat7, ba_ticketNumber.data(), std::min(ba_ticketNumber.size(),8));
|
||||||
|
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
/*
|
/*
|
||||||
uint8_t* buf = dynTicketData->licensePlate;
|
uint8_t* buf = dynTicketData->licensePlate;
|
||||||
|
Loading…
Reference in New Issue
Block a user