diff options
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); |