From 946a0c939c0cb7c28c9af9b7e4e2b20c45dd3702 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 20 Sep 2025 20:25:14 +0200 Subject: billing item validation --- include/ui.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/ui.hpp') diff --git a/include/ui.hpp b/include/ui.hpp index 3a8ce66..ebfa210 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -95,6 +95,7 @@ void ui_destroy_earnings(); // Custom imgui widgets. namespace ImGui { + void InputTextWithError(const char* text, char* buffer, size_t buf_size, bool has_error); int TextInputWithAutocomplete(const char* hint, char* buffer, size_t buf_size, char** suggestions, int suggestion_count, bool has_error); void FormContactAutocomplete(contact* buffer, bool has_error); @@ -103,7 +104,7 @@ namespace ImGui void FormContactTypeCombo(contact_type* type); void FormCostCenterCombo(char* costcenter_id); void FormProjectCombo(char* project_id); - void FormTaxRateCombo(char* tax_rate_id, char* orig_country, char* dest_country); + void FormTaxRateCombo(char* tax_rate_id, char* orig_country, char* dest_country, bool has_error); bool FormCurrencyCombo(char* currency); void FormToggleCombo(bool *buffer, char* option1, char* option2); } \ No newline at end of file -- cgit v1.2.3-70-g09d2