From 2f1250e61daf402e27515dca103dd590639e1484 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 20 Jun 2018 22:26:28 +0200 Subject: [PATCH] Fixed double print of bill. --- shop/receiptgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;