mark article as to be deleted (since we have only ad-hoc articles)

allow_new_sellers
Martin Brodbeck 4 years ago
parent 372937e096
commit 2d93da5cc2
  1. 2
      src/core/sale.cpp

@ -24,6 +24,8 @@ void Sale::removeArticle(const Article* articlePtr)
[&articlePtr](auto art) { return art.get() == articlePtr; });
if (it != articles_.end()) {
(*it)->setSale(nullptr);
(*it)->setState(
Article::State::DELETE); // since we only have ad-hoc articles, that have all been sold
articles_.erase(it);
}
}

Loading…
Cancel
Save