requestPrintTicket() add new product names
This commit is contained in:
parent
346c953175
commit
d7443974e2
@ -812,19 +812,39 @@ void ATBDeviceControllerPlugin::requestPrintTicket(const QHash<QString, QVariant
|
|||||||
QString paymentType = printingData["paymentType"].toString(); // must be "CASH" | "CARD"
|
QString paymentType = printingData["paymentType"].toString(); // must be "CASH" | "CARD"
|
||||||
QString productName = printingData["product"].toString(); // must be "ShortTimeParking" | "DayTicket"
|
QString productName = printingData["product"].toString(); // must be "ShortTimeParking" | "DayTicket"
|
||||||
|
|
||||||
if ( (paymentType == "CASH") && (productName == "SHORT_TERM_PARKING") ) {
|
if ( (paymentType == "CASH") && ( (productName == "SHORT_TERM_PARKING") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_CAR") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_VAN") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_CAMPER")
|
||||||
|
))
|
||||||
|
{
|
||||||
this->currentSelectedTicketType = 1; // "Kombiticket #1"
|
this->currentSelectedTicketType = 1; // "Kombiticket #1"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if ( (paymentType == "CARD") && (productName == "SHORT_TERM_PARKING") ) {
|
if ( (paymentType == "CARD") && ( (productName == "SHORT_TERM_PARKING") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_CAR") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_VAN") ||
|
||||||
|
(productName == "SHORT_TERM_PARKING_CAMPER")
|
||||||
|
))
|
||||||
|
{
|
||||||
this->currentSelectedTicketType = 2; // "Kombiticket #2"
|
this->currentSelectedTicketType = 2; // "Kombiticket #2"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if ( (paymentType == "CASH") && (productName == "DAY_TICKET") ) {
|
if ( (paymentType == "CASH") && ( (productName == "DAY_TICKET") ||
|
||||||
|
(productName == "DAY_TICKET_CAR") ||
|
||||||
|
(productName == "DAY_TICKET_VAN") ||
|
||||||
|
(productName == "DAY_TICKET_CAMPER")
|
||||||
|
))
|
||||||
|
{
|
||||||
this->currentSelectedTicketType = 3; // "Kombiticket #3"
|
this->currentSelectedTicketType = 3; // "Kombiticket #3"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if ( (paymentType == "CARD") && (productName == "DAY_TICKET") ) {
|
if ( (paymentType == "CARD") && ( (productName == "DAY_TICKET") ||
|
||||||
|
(productName == "DAY_TICKET_CAR") ||
|
||||||
|
(productName == "DAY_TICKET_VAN") ||
|
||||||
|
(productName == "DAY_TICKET_CAMPER")
|
||||||
|
))
|
||||||
|
{
|
||||||
this->currentSelectedTicketType = 4; // "Kombiticket #4"
|
this->currentSelectedTicketType = 4; // "Kombiticket #4"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user