From ce8660cc5bfc12e6e3f75d4cce22492783ca9066 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 8 Apr 2021 08:49:10 -0700 Subject: Initial work on table visualizer --- core/src/Model/Items.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/Model/Items.hpp') 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 { 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); -- cgit v1.2.3-70-g09d2