diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/administration_reader.hpp | 1 | ||||
| -rw-r--r-- | include/countries.hpp | 2 | ||||
| -rw-r--r-- | include/ui.hpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/administration_reader.hpp b/include/administration_reader.hpp index f8f8766..b2311af 100644 --- a/include/administration_reader.hpp +++ b/include/administration_reader.hpp @@ -20,7 +20,6 @@ namespace administration_reader { bool open_new(); bool open_existing(char* file_path); - bool save_new(); bool import_administration_info(char* buffer, size_t buffer_size); bool import_tax_rate(char* buffer, size_t buffer_size); diff --git a/include/countries.hpp b/include/countries.hpp index 0e3704f..5364eff 100644 --- a/include/countries.hpp +++ b/include/countries.hpp @@ -22,6 +22,7 @@ typedef struct { char* country_code; bool is_EU; + bool enabled; // true = can be used as operating country. time_t (*get_default_invoice_expire_duration)(); @@ -41,6 +42,7 @@ namespace country { time_t get_default_invoice_expire_duration(char* country_code); bool is_EU(char* country_code); + bool is_enabled(char* country_code); bool tax_is_implemented(char* country_code); void fill_tax_report_with_categories(char* country_code, tax_report* report); bool add_billing_item_to_tax_report(char* country_code, tax_report* report, invoice* inv, billing_item* item); diff --git a/include/ui.hpp b/include/ui.hpp index 92cb8f5..68b1aa4 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -106,7 +106,7 @@ namespace ImGui bool FormInvoiceFileSelector(char* text, char* buffer); void FormContactAutocomplete(contact* buffer, bool has_error); void FormInputTextWithErrorHint(const char* hint, char* buffer, size_t buf_size, bool has_error); - void FormCountryCombo(char* buffer, size_t buf_size); + void FormCountryCombo(char* buffer, size_t buf_size, bool activated_only = false); void FormContactTypeCombo(contact_type* type); void FormCostCenterCombo(char* costcenter_id); void FormProjectCombo(char* project_id); |
