fixed only handling two fields of a check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user