Fixed double print of bill.

master
Josef Rokos 7 years ago
parent ee5130f719
commit 2f1250e61d

@ -152,7 +152,7 @@ QByteArray ReceiptGenerator::generate()
QString name = item->name(); QString name = item->name();
QString price = QString::number(item->price().toDouble(), 'f', 2); QString price = QString::number(item->price().toDouble(), 'f', 2);
hasDoubleItem = name == shopSettings->doublePrintItem(); hasDoubleItem = hasDoubleItem || name == shopSettings->doublePrintItem();
int numSpaces = 0; int numSpaces = 0;
name = count + "x " + name; name = count + "x " + name;

Loading…
Cancel
Save