From 634b256da7bf1d74b9e21ba3b5de0b072e13ee60 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 8 Oct 2018 09:20:59 +0200 Subject: [PATCH] [Enh #7] Show seller no. in sales view --- src/gui/salemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/salemodel.cpp b/src/gui/salemodel.cpp index 8d7f8e0..689c6ad 100644 --- a/src/gui/salemodel.cpp +++ b/src/gui/salemodel.cpp @@ -108,7 +108,7 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const Article* article = static_cast(index.internalPointer()); switch (index.column()) { case 0: - return article->getCompleteArticleNo().c_str(); + return (std::string("Verk. ") + std::to_string(article->getSeller()->getSellerNo()) + " (" + article->getCompleteArticleNo() + ")").c_str(); case 1: return article->getPriceAsString().c_str(); case 2: @@ -146,7 +146,7 @@ QVariant SaleModel::headerData(int section, Qt::Orientation orientation, int rol if (orientation == Qt::Horizontal) { switch (section) { case 0: - return "Zeit / Art.Nr."; + return "Zeit / Verk.Nr. (Art.Nr)"; case 1: return "Preis"; default: