FOSSredder 0.5.0
Loading...
Searching...
No Matches
AnnualResult.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string>
9#include <vector>
10
11namespace core::ports::annual {
12
14 std::string key;
15 std::string transactionId;
16 std::string transactionName;
17 std::string bookingDate;
18 double amount = 0.0;
19 int status = 0;
20 bool allocatable = false;
21 std::string contractId;
22 std::string contractType;
23 std::string statementId;
24 bool missingLive = false;
25 bool mixedYear = false;
26 bool calcVariant = false;
28 std::vector<std::string> sourceAnalysisIds;
29 std::vector<std::string> sourceAnalysisNames;
30};
31
44
46 std::string annualId;
47 std::string annualName;
48 int year = 0;
50 std::vector<AnnualRowResult> deduplicated;
51 std::vector<AnnualRowResult> similar;
52 std::vector<AnnualRowResult> divergent;
53 std::vector<AnnualRowResult> workspaceOnly;
54 std::vector<AnnualRowResult> missingLive;
55
60 [[nodiscard]] bool empty() const noexcept {
61 return deduplicated.empty() && similar.empty() && divergent.empty() &&
62 workspaceOnly.empty() && missingLive.empty();
63 }
64};
65
66} // namespace core::ports::annual
std::vector< AnnualRowResult > missingLive
bool empty() const noexcept
Reports whether the result contains no transaction rows.
std::vector< AnnualRowResult > similar
std::vector< AnnualRowResult > deduplicated
std::vector< AnnualRowResult > divergent
std::vector< AnnualRowResult > workspaceOnly
std::vector< std::string > sourceAnalysisNames
std::vector< std::string > sourceAnalysisIds