now printing reports

This commit is contained in:
Martin Brodbeck 2018-07-31 16:15:48 +02:00
parent a6c5366b63
commit 4a41036aec
6 changed files with 138 additions and 5 deletions

View file

@ -41,6 +41,12 @@ class Marketplace
void finishCurrentSale(std::unique_ptr<Sale> sale);
void removeSale(boost::uuids::uuid uuid);
int getOverallSumInCent();
std::string getOverallSumAsString();
int getOverallPaymentInCent(int percent, int maxFee);
std::string getOverallPaymentAsString(int percent, int maxFee);
std::string getOverallRevenueAsString(int percent, int maxFee);
void exportReportToCSV(const std::string& filename, int feeInPercent, int maxFeeInEuro);
private: