more on selling
This commit is contained in:
parent
0ad460346c
commit
74ac9f6299
2 changed files with 4 additions and 1 deletions
|
@ -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
|
|
@ -58,8 +58,9 @@ 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
|
||||
}
|
||||
|
||||
|
||||
ui_.sellerNoEdit->clear();
|
||||
}
|
Loading…
Reference in a new issue