Fixed double print of bill.

master
Josef Rokos 6 years ago
parent ee5130f719
commit 2f1250e61d

@ -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;

Loading…
Cancel
Save