fixed only handling two fields of a check

This commit is contained in:
2025-05-24 16:04:44 +03:00
parent 20b08f493d
commit 1507faef6e
10 changed files with 163 additions and 85 deletions

View File

@@ -1,6 +1,7 @@
#ifndef CHECK_H
#define CHECK_H
#include "../goods/goods.h"
#include <vector>
typedef enum OperationTypes {
@@ -23,6 +24,7 @@ class Check {
public:
Check();
Check(std::string date, double total, OperationType type, std::string fn, std::string fd, std::string fi, std::vector<Goods> goods);
void add_goods(Goods);
void add_goods(std::vector<Goods> &goods);
@@ -37,6 +39,8 @@ public:
void set_operation_type(OperationType);
void set_total(double);
void set_goods(std::vector<Goods>);
std::string get_fn();
std::string get_fd();
std::string get_fi();
@@ -48,4 +52,5 @@ public:
bool operator==(const Check &);
};
#endif // CHECK_H