fully support special seller "Sonderkonto"
This commit is contained in:
parent
a3b832b087
commit
a7a83ba3b9
6 changed files with 24 additions and 4 deletions
|
@ -81,12 +81,13 @@ QVariant BasketModel::headerData(int section, Qt::Orientation orientation, int r
|
|||
return "";
|
||||
}
|
||||
|
||||
void BasketModel::addArticle(Seller* seller, int price)
|
||||
void BasketModel::addArticle(Seller* seller, int price, const std::string& desc)
|
||||
{
|
||||
emit beginInsertRows(QModelIndex(), marketplace_->getBasket().size(),
|
||||
marketplace_->getBasket().size());
|
||||
auto article = std::make_unique<Article>(price);
|
||||
article->createUuid();
|
||||
article->setDescription(desc);
|
||||
article->setArticleNo(marketplace_->getNextArticleNo());
|
||||
article->setSourceNo(QSettings().value("global/cashPointNo").toInt());
|
||||
article->setSeller(seller);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue