diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-20 20:25:14 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-20 20:25:14 +0200 |
| commit | 946a0c939c0cb7c28c9af9b7e4e2b20c45dd3702 (patch) | |
| tree | c0d33801ecff3edb15f2e369e7aeeb2514dd73eb /include/ui.hpp | |
| parent | 9a16fd2cf0bca13d8a3015da89833db2230b391f (diff) | |
billing item validation
Diffstat (limited to 'include/ui.hpp')
| -rw-r--r-- | include/ui.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
