diff options
author | rtk0c <[email protected]> | 2021-04-08 08:49:10 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-04-08 08:49:10 -0700 |
commit | ce8660cc5bfc12e6e3f75d4cce22492783ca9066 (patch) | |
tree | f5c1088def48e60570a1225d6440f304b37b5b5c /core/src/Model/Items.hpp | |
parent | 2f4b9db39239ed5150094a81743beea42a3eedc2 (diff) |
Initial work on table visualizer
Diffstat (limited to 'core/src/Model/Items.hpp')
-rw-r--r-- | core/src/Model/Items.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/Model/Items.hpp b/core/src/Model/Items.hpp index 14b62f3..1289be6 100644 --- a/core/src/Model/Items.hpp +++ b/core/src/Model/Items.hpp @@ -175,6 +175,7 @@ public: class ProductItem : public ItemBase<ProductItem> { private: std::string mDescription; + int mPrice = 0; int mStock = 0; public: @@ -182,6 +183,11 @@ public: const std::string& GetDescription() const; void SetDescription(std::string description); + /// Get the price of this item in US cents. + int GetPrice() const; + void SetPrice(int price); + /// Get the current number of this product in warehouse. + /// This is a housekeeping field and shouldn't be editable by the user from the UI. int GetStock() const; void SetStock(int stock); |