plans and sketches
This commit is contained in:
@@ -3,7 +3,22 @@
|
||||
#include "../goods/goods.h"
|
||||
#include <vector>
|
||||
|
||||
typedef enum OperationTypes {
|
||||
funds_income, // Приход средств
|
||||
funds_return, // Возврат прихода
|
||||
funds_spend, // Расход средств
|
||||
spends_return // Возврат расхода
|
||||
} OperationType;
|
||||
|
||||
class Check {
|
||||
std::string fn; // Fiscal Number = Фискальный номер
|
||||
std::string fd; // Fiscal Document = Фискальный документ
|
||||
std::string fi; // Fiscal Identifier = Фискальный признак
|
||||
|
||||
std::string date;
|
||||
OperationType operation_type;
|
||||
double total;
|
||||
|
||||
std::vector<Goods> goods;
|
||||
|
||||
public:
|
||||
@@ -14,6 +29,20 @@ public:
|
||||
double calculae_total_price();
|
||||
|
||||
std::vector<Goods> &get_goods();
|
||||
|
||||
void set_fn(std::string);
|
||||
void set_fd(std::string);
|
||||
void set_fi(std::string);
|
||||
void set_date(std::string);
|
||||
void set_operation_type(OperationType);
|
||||
void set_total(double);
|
||||
|
||||
std::string get_fn();
|
||||
std::string get_fd();
|
||||
std::string get_fi();
|
||||
std::string get_date();
|
||||
OperationType get_operationType();
|
||||
double get_total();
|
||||
};
|
||||
|
||||
#endif // CHECK_H
|
||||
|
||||
Reference in New Issue
Block a user