net weights implementation WIP

This commit is contained in:
2025-03-22 01:02:37 +03:00
parent d83f106a91
commit 59315f9445
12 changed files with 104 additions and 94 deletions

View File

@@ -7,17 +7,20 @@ class Goods
{
std::string name;
double quantity; // by weight or by the piece
std::string net_weight; // will contain values like "5мл" or "10г"
double price_per_unit;
public:
Goods(std::string, double, double);
Goods(std::string name, double quantity, std::string net_weight, double price_per_unit);
double calculate_total_price();
std::string get_name();
double get_quantity();
std::string get_net_weight();
double get_price_per_unit();
void set_name(std::string);
void set_quantity(double);
void set_net_weight(std::string);
void set_price_per_unit(double);
};