starting work on export module, added check trimming

This commit is contained in:
2024-08-24 00:45:47 +03:00
parent 2715272ebf
commit ddf906fbbc
16 changed files with 346 additions and 61 deletions

View File

@@ -2,7 +2,9 @@
#include "../goods/goods.h"
Check::Check() {}
void Check::add_goods(Goods goods) { this->goods.push_back(goods); }
double Check::calculae_total_price() {
double total = 0.0;
@@ -12,3 +14,7 @@ double Check::calculae_total_price() {
return total;
}
std::vector<Goods>& Check::get_goods() {
return goods;
}

View File

@@ -11,6 +11,8 @@ public:
void add_goods(Goods);
double calculae_total_price();
std::vector<Goods>& get_goods();
};
#endif // CHECK_H