plans and sketches

This commit is contained in:
2025-04-15 22:02:33 +03:00
parent 5f4a86cee8
commit 6706cbec45
9 changed files with 235 additions and 2 deletions

View File

@@ -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