summaryrefslogtreecommitdiff
path: root/src/ui/imgui_extensions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/imgui_extensions.cpp')
-rw-r--r--src/ui/imgui_extensions.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/imgui_extensions.cpp b/src/ui/imgui_extensions.cpp
index a283ad4..5a00648 100644
--- a/src/ui/imgui_extensions.cpp
+++ b/src/ui/imgui_extensions.cpp
@@ -221,7 +221,7 @@ namespace ImGui
ImGui::SetNextItemWidth(widthAvailable*0.5f);
contact autocomplete_list[5];
- int autocomplete_count = administration_contact_get_autocompletions(autocomplete_list, 5, buffer->name);
+ int autocomplete_count = administration::contact_get_autocompletions(autocomplete_list, 5, buffer->name);
char* autocomplete_strings[5];
for (int i = 0; i < autocomplete_count; i++)
@@ -246,11 +246,11 @@ namespace ImGui
void FormCostCenterCombo(char* costcenter_id)
{
- u32 costcenter_count = administration_cost_center_count();
+ u32 costcenter_count = administration::cost_center_count();
cost_center* buffer = (cost_center*) malloc(sizeof(cost_center) * costcenter_count);
cost_center* selected_costcenter = NULL;
- costcenter_count = administration_cost_center_get_all(buffer);
+ costcenter_count = administration::cost_center_get_all(buffer);
// Select cost center by given id.
if (strlen(costcenter_id) > 0)
@@ -287,11 +287,11 @@ namespace ImGui
void FormProjectCombo(char* project_id)
{
- u32 project_count = administration_project_count();
+ u32 project_count = administration::project_count();
project* buffer = (project*) malloc(sizeof(project) * project_count);
project* selected_project = NULL;
- project_count = administration_project_get_all(buffer);
+ project_count = administration::project_get_all(buffer);
// Select project by given id.
if (strlen(project_id) > 0)
@@ -328,12 +328,12 @@ namespace ImGui
void FormTaxRateCombo(char* tax_rate_id, char* orig_country, char* dest_country, bool has_error)
{
- u32 tax_rate_count = administration_tax_rate_count();
+ u32 tax_rate_count = administration::tax_rate_count();
tax_rate* buffer = (tax_rate*) malloc(sizeof(tax_rate) * tax_rate_count);
tax_rate* selected_tax_rate = NULL;
char* tax_country_codes[2] = {orig_country, dest_country};
- tax_rate_count = administration_tax_rate_get_by_country(buffer, strcmp(orig_country, dest_country) == 0 ? 1 : 2, tax_country_codes);
+ tax_rate_count = administration::tax_rate_get_by_country(buffer, strcmp(orig_country, dest_country) == 0 ? 1 : 2, tax_country_codes);
// Select tax rate by given id.
if (strlen(tax_rate_id) > 0)