cut names if necessary

This commit is contained in:
Martin Brodbeck 2018-08-07 09:30:06 +02:00
parent a7a83ba3b9
commit cdc737a823

View file

@ -89,8 +89,8 @@ void ReportDialog::onPrintReportButtonClicked()
for (unsigned int j = 0; j < ENTRIES_PER_PAGE && (i * j) < sellers.size(); ++j) {
content += QString("%1 %2 %3 %4 %5 %6 %7\n")
.arg(sellers.at(i * j)->getSellerNo(), 3)
.arg(sellers.at(i * j)->getLastName().c_str(), -14)
.arg(sellers.at(i * j)->getFirstName().c_str(), -14)
.arg(sellers.at(i * j)->getLastName().substr(0, 14).c_str(), -14)
.arg(sellers.at(i * j)->getFirstName().substr(0, 14).c_str(), -14)
.arg(sellers.at(i * j)->numArticlesOffered(), 9)
.arg(sellers.at(i * j)->numArticlesSold(), 8)
.arg(sellers.at(i * j)->sumAsString().c_str(), 10)