diff options
author | rtk0c <[email protected]> | 2021-04-01 22:18:46 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-01 22:18:46 -0700 |
commit | 2f4b9db39239ed5150094a81743beea42a3eedc2 (patch) | |
tree | 7d5795f7c23eb4f92ccffe2476da019db9977f2b /core/src/Model/Items.hpp | |
parent | 44f5fa5c8f258e8fc1f7d7e2e45e0485bd6cc490 (diff) |
Initial work on SQLite database
Diffstat (limited to 'core/src/Model/Items.hpp')
-rw-r--r-- | core/src/Model/Items.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/Model/Items.hpp b/core/src/Model/Items.hpp index e20a290..14b62f3 100644 --- a/core/src/Model/Items.hpp +++ b/core/src/Model/Items.hpp @@ -175,12 +175,15 @@ public: class ProductItem : public ItemBase<ProductItem> { private: std::string mDescription; + int mStock = 0; public: using ItemBase::ItemBase; const std::string& GetDescription() const; void SetDescription(std::string description); + int GetStock() const; + void SetStock(int stock); Json::Value Serialize() const; void Deserialize(const Json::Value& elm); |