summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/administration.hpp7
-rw-r--r--include/ui.hpp4
2 files changed, 11 insertions, 0 deletions
diff --git a/include/administration.hpp b/include/administration.hpp
index 45effee..67efb9c 100644
--- a/include/administration.hpp
+++ b/include/administration.hpp
@@ -271,6 +271,7 @@ typedef struct
char cost_center_id[MAX_LEN_ID];
char description[MAX_LEN_LONG_DESC];
float total;
+ bool expense_used_in_project;
} project_expense;
typedef struct
@@ -290,6 +291,8 @@ typedef struct
float uncategorized_revenue;
float uncategorized_taxes;
+ float profit;
+
u32 report_count;
project_report reports[MAX_LEN_QUARTERLY_REPORT_PROJECTS];
u16 year; // 00-99
@@ -310,6 +313,8 @@ typedef struct
s32 next_sequence_number; // Sequence number for generating invoice numbers.
char path[MAX_LEN_PATH]; // Full path to save file of current administration file.
char program_version[10]; // Program version of exe that stored the save file.
+
+ char default_currency[MAX_LEN_CURRENCY]; // Currency where invoice totals and reports are represented in, based on company location.
list_t contacts;
list_t projects;
@@ -333,6 +338,8 @@ char* administration_file_path_get();
contact administration_company_info_get();
void administration_company_info_set(contact data);
void administration_create_income_statement(income_statement* statement);
+char* administration_get_currency_symbol_from_currency(char* code);
+char* administration_get_default_currency();
// Contact functions.
// =======================
diff --git a/include/ui.hpp b/include/ui.hpp
index 044eff5..ddfb824 100644
--- a/include/ui.hpp
+++ b/include/ui.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include "imgui.h"
+
#define STATUS_TEXT_LEN 64
#define STATUS_DURATION 4.0f
#define STATUS_FLASH_INTERVAL 0.1f
@@ -26,6 +28,8 @@ typedef struct
bool loading;
} ui_status;
+extern ImFont* fontBold;
+
void ui_helper_draw_required_tag();
void ui_set_status_loading(bool loading);