Change product-names

This commit is contained in:
Siegfried Siegert 2024-02-21 16:34:23 +01:00
parent bab7423965
commit 3eaf98fb09
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -813,19 +813,19 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
QString paymentType = printingData["paymentType"].toString(); // must be "CASH" | "CARD"
QString productName = printingData["product"].toString(); // must be "ShortTimeParking" | "DayTicket"
if ( (paymentType == "CASH") && (productName == "ShortTimeParking") ) {
if ( (paymentType == "CASH") && (productName == "SHORT_TERM_PARKING") ) {
this->currentSelectedTicketType = 1;
}
else
if ( (paymentType == "CARD") && (productName == "ShortTimeParking") ) {
if ( (paymentType == "CARD") && (productName == "SHORT_TERM_PARKING") ) {
this->currentSelectedTicketType = 2;
}
else
if ( (paymentType == "CASH") && (productName == "DayTicket") ) {
if ( (paymentType == "CASH") && (productName == "DAY_TICKET") ) {
this->currentSelectedTicketType = 3;
}
else
if ( (paymentType == "CARD") && (productName == "DayTicket") ) {
if ( (paymentType == "CARD") && (productName == "DAY_TICKET") ) {
this->currentSelectedTicketType = 4;
}
else {