diff --git a/shop/receiptgenerator.cpp b/shop/receiptgenerator.cpp index 8548634..8a1f8be 100644 --- a/shop/receiptgenerator.cpp +++ b/shop/receiptgenerator.cpp @@ -152,7 +152,7 @@ QByteArray ReceiptGenerator::generate() QString name = item->name(); QString price = QString::number(item->price().toDouble(), 'f', 2); - hasDoubleItem = name == shopSettings->doublePrintItem(); + hasDoubleItem = hasDoubleItem || name == shopSettings->doublePrintItem(); int numSpaces = 0; name = count + "x " + name;