From bc35f95a068beda738e936680ad069c029ed3ef3 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 6 Aug 2018 21:36:26 +0200 Subject: [PATCH] more on seller receipt --- src/printer/posprinter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/printer/posprinter.cpp b/src/printer/posprinter.cpp index 1c07c1a..2401d01 100644 --- a/src/printer/posprinter.cpp +++ b/src/printer/posprinter.cpp @@ -166,6 +166,7 @@ void PosPrinter::printSellerReceipt(Seller* seller, int percent, int maxFeeInCen boost::posix_time::to_simple_string(boost::posix_time::second_clock::local_time()); commandStream << timeStr << "\n\n"; commandStream << Command::LEFT_ALIGN; + commandStream << "Name: " << seller->getFirstName() << " " << seller->getLastName() << "\n"; commandStream << "Verkäufernummer: " << std::setw(4) << seller->getSellerNo() << "\n\n"; commandStream << "Anzahl Artikel geliefert: " << std::setw(4) << seller->numArticlesOffered() << "\n"; @@ -180,10 +181,10 @@ void PosPrinter::printSellerReceipt(Seller* seller, int percent, int maxFeeInCen commandStream << "Art. " << article->getCompleteArticleNo() << "........... " << article->getPriceAsString() << "\n"; } - commandStream << "\nGesamt................." << seller->sumAsString() << "\n"; - commandStream << "./. Gebühr............." + commandStream << "\nGesamt................. " << seller->sumAsString() << "\n"; + commandStream << "./. Gebühr............. " << marketFeeAsString(seller->sumInCents(), percent, maxFeeInCent) << "\n"; - commandStream << "\nAuszahlung............." + commandStream << "\nAuszahlung............. " << paymentAsString(seller->sumInCents(), percent, maxFeeInCent) << "\n"; commandStream << Command::FEED;