[Enh #7] Show seller no. in sales view
This commit is contained in:
parent
b76d1e129a
commit
634b256da7
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
|
||||||
Article* article = static_cast<Article*>(index.internalPointer());
|
Article* article = static_cast<Article*>(index.internalPointer());
|
||||||
switch (index.column()) {
|
switch (index.column()) {
|
||||||
case 0:
|
case 0:
|
||||||
return article->getCompleteArticleNo().c_str();
|
return (std::string("Verk. ") + std::to_string(article->getSeller()->getSellerNo()) + " (" + article->getCompleteArticleNo() + ")").c_str();
|
||||||
case 1:
|
case 1:
|
||||||
return article->getPriceAsString().c_str();
|
return article->getPriceAsString().c_str();
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -146,7 +146,7 @@ QVariant SaleModel::headerData(int section, Qt::Orientation orientation, int rol
|
||||||
if (orientation == Qt::Horizontal) {
|
if (orientation == Qt::Horizontal) {
|
||||||
switch (section) {
|
switch (section) {
|
||||||
case 0:
|
case 0:
|
||||||
return "Zeit / Art.Nr.";
|
return "Zeit / Verk.Nr. (Art.Nr)";
|
||||||
case 1:
|
case 1:
|
||||||
return "Preis";
|
return "Preis";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue