diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 14:51:41 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 14:51:41 +0200 |
| commit | d174d803de2296061731c3698980a6a51e6fc3ef (patch) | |
| tree | 27cf4a1d2e5c8d7ec98b3c88641d2fc4e231543d /src/administration.cpp | |
| parent | 12f306e2144081e00c36ed9942068462604bef55 (diff) | |
fix invoice savefile overflow
Diffstat (limited to 'src/administration.cpp')
| -rw-r--r-- | src/administration.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/administration.cpp b/src/administration.cpp index f8cbdb3..bbc9a65 100644 --- a/src/administration.cpp +++ b/src/administration.cpp @@ -563,6 +563,7 @@ void administration_create_income_statement(income_statement* statement) quarter.uncategorized_revenue = 0.0f; quarter.uncategorized_taxes = 0.0f; quarter.report_count = 0; + quarter.is_empty = 1; snprintf(quarter.quarter_str, MAX_LEN_SHORT_DESC, "%dQ%d", quarter.quarter+1, quarter.year); project_count = administration_project_count(); @@ -617,6 +618,7 @@ void administration_create_income_statement(income_statement* statement) quarterly_report* quarter = &statement->quarters[report_index]; assert(yy == quarter->year && qq == quarter->quarter); + quarter->is_empty = 0; if (strcmp(inv->project_id, "") == 0) { if (inv->is_outgoing) { |
