more on selling

This commit is contained in:
Martin Brodbeck 2018-07-20 22:10:05 +02:00
parent 0ad460346c
commit 74ac9f6299
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,7 @@ namespace
{ {
using SellersVec = std::vector<std::unique_ptr<Seller>>; using SellersVec = std::vector<std::unique_ptr<Seller>>;
using SalesVec = std::vector<std::unique_ptr<Sale>>; using SalesVec = std::vector<std::unique_ptr<Sale>>;
using BasketVec = std::vector<std::unique_ptr<Sale>>;
} // namespace } // namespace
struct Basket { struct Basket {
@ -31,6 +32,7 @@ class Marketplace
private: private:
SellersVec sellers_; SellersVec sellers_;
SalesVec sales_; SalesVec sales_;
BasketVec basket_;
}; };
#endif #endif

View file

@ -58,8 +58,9 @@ void MainWindow::on_sellerNoEdit_checkSellerNo()
auto seller = marketplace_->findSellerWithSellerNo(sellerNo); auto seller = marketplace_->findSellerWithSellerNo(sellerNo);
if (seller) { if (seller) {
std::cout << "!!! Seller gefunden: " << seller->getFirstName() << "\n"; std::cout << "!!! Seller gefunden: " << seller->getFirstName() << "\n";
// TODO: Dialog für Preiseingabe anzeigen
// TODO: Warenkorb füllen // TODO: Warenkorb füllen
} }
ui_.sellerNoEdit->clear(); ui_.sellerNoEdit->clear();
} }