summaryrefslogtreecommitdiff
path: root/include/countries.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/countries.hpp')
-rw-r--r--include/countries.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/countries.hpp b/include/countries.hpp
index 5364eff..7a15a32 100644
--- a/include/countries.hpp
+++ b/include/countries.hpp
@@ -20,7 +20,7 @@
typedef struct
{
- char* country_code;
+ const char* country_code;
bool is_EU;
bool enabled; // true = can be used as operating country.
@@ -37,16 +37,16 @@ typedef struct
namespace country {
s32 get_count();
- char* get_code_by_index(s32 index);
+ const char* get_code_by_index(s32 index);
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);
+ bool is_EU(const char* country_code);
+ bool is_enabled(const char* country_code);
+ bool tax_is_implemented(const 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);
float calculate_tax_report_final(char* country_code, tax_report* report);
time_t get_invoice_date_to_use_for_tax_report(char* country_code, invoice* inv);
- u32 get_available_tax_rates(char* country_code, tax_rate* buffer, u32 buffer_size);
+ u32 get_available_tax_rates(const char* country_code, tax_rate* buffer, u32 buffer_size);
} \ No newline at end of file