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

View file

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