code beautifying
This commit is contained in:
parent
e9fde76a60
commit
4fb6d2f98b
3 changed files with 10 additions and 9 deletions
|
@ -46,7 +46,8 @@ PosPrinter::PosPrinter(const PrinterDevice& printerDevice) : printerDevice_(prin
|
|||
|
||||
if (printerDevice_.idVendor == 0) {
|
||||
for (const auto& supported : supportedPrinters_.models) {
|
||||
if (desc.idVendor == std::get<0>(supported) && desc.idProduct == std::get<1>(supported)) {
|
||||
if (desc.idVendor == std::get<0>(supported) &&
|
||||
desc.idProduct == std::get<1>(supported)) {
|
||||
numDevice = i;
|
||||
printerEndpoint_ = std::get<2>(supported);
|
||||
break;
|
||||
|
@ -161,8 +162,8 @@ void PosPrinter::printSaleReceipt(Sale* sale)
|
|||
commandStream << sale->getTimestampFormatted() << "\n\n";
|
||||
commandStream << Command::LEFT_ALIGN;
|
||||
for (const auto& article : sale->getArticles()) {
|
||||
commandStream << "Verk.Nr. " << article->getSeller()->getSellerNoAsString() << "........... "
|
||||
<< article->getPriceAsString() << "\n";
|
||||
commandStream << "Verk.Nr. " << article->getSeller()->getSellerNoAsString()
|
||||
<< "........... " << article->getPriceAsString() << "\n";
|
||||
}
|
||||
commandStream << "\nGesamt................. " << sale->sumAsString() << "\n";
|
||||
commandStream << Command::CENTERING;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue