diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-26 08:27:48 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-26 08:27:48 +0100 |
| commit | 5abb2cbd8f201b8a8101a661f1dd9a68412d8674 (patch) | |
| tree | d11d1483100ed89eabf37efaaf3fae16df3cc4e6 /src/countries.cpp | |
| parent | 8df1486ca41edb625feb269fe7f7997fa5ffacfe (diff) | |
refactor ui, fix autocomplete bug
Diffstat (limited to 'src/countries.cpp')
| -rw-r--r-- | src/countries.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/countries.cpp b/src/countries.cpp index 4456284..337b10b 100644 --- a/src/countries.cpp +++ b/src/countries.cpp @@ -250,6 +250,14 @@ bool country::is_EU(char* country_code) return country_map[index].is_EU; } +bool country::is_enabled(char* country_code) +{ + s32 index = get_index_by_country_code(country_code); + if (index == -1) return 0; + + return country_map[index].enabled; +} + time_t country::get_default_invoice_expire_duration(char* country_code) { s32 index = get_index_by_country_code(country_code); |
