Browse Source

[Fix #1] calculate fee correctly whe export to csv

allow_new_sellers
Martin Brodbeck 4 years ago
parent
commit
381dad1011
  1. 2
      src/core/marketplace.cpp

2
src/core/marketplace.cpp

@ -185,7 +185,7 @@ void Marketplace::exportReportToCSV(const fs::path& filePath, int feeInPercent,
<< escapeCsvValue(seller->getFirstName(), delimiter) << delimiter
<< seller->numArticlesOffered() << delimiter << seller->numArticlesSold() << delimiter
<< escapeCsvValue(seller->sumAsString(), delimiter) << delimiter
<< escapeCsvValue(paymentAsString(seller->sumInCents(), feeInPercent, maxFeeInEuro),
<< escapeCsvValue(paymentAsString(seller->sumInCents(), feeInPercent, maxFeeInEuro * 100),
delimiter)
<< "\n";
}

Loading…
Cancel
Save