diff options
Diffstat (limited to 'src/countries.cpp')
| -rw-r--r-- | src/countries.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/countries.cpp b/src/countries.cpp index 5d1ea5a..5384889 100644 --- a/src/countries.cpp +++ b/src/countries.cpp @@ -258,7 +258,7 @@ bool country::is_enabled(const char* country_code) return country_map[index].enabled; } -time_t country::get_default_invoice_expire_duration(char* country_code) +time_t country::get_default_invoice_expire_duration(const char* country_code) { s32 index = get_index_by_country_code(country_code); if (index == -1) return 0; @@ -275,7 +275,7 @@ bool country::tax_is_implemented(const char* country_code) country_map[index].add_billing_item_to_tax_report && country_map[index].get_available_tax_rates; } -void country::fill_tax_report_with_categories(char* country_code, tax_report* report) +void country::fill_tax_report_with_categories(const char* country_code, tax_report* report) { s32 index = get_index_by_country_code(country_code); assert(index != -1); @@ -283,7 +283,7 @@ void country::fill_tax_report_with_categories(char* country_code, tax_report* re country_map[index].fill_tax_report_with_categories(report); } -bool country::add_billing_item_to_tax_report(char* country_code, tax_report* report, invoice* inv, billing_item* item) +bool country::add_billing_item_to_tax_report(const char* country_code, tax_report* report, invoice* inv, billing_item* item) { s32 index = get_index_by_country_code(country_code); assert(index != -1); @@ -291,7 +291,7 @@ bool country::add_billing_item_to_tax_report(char* country_code, tax_report* rep return country_map[index].add_billing_item_to_tax_report(report, inv, item); } -float country::calculate_tax_report_final(char* country_code, tax_report* report) +float country::calculate_tax_report_final(const char* country_code, tax_report* report) { s32 index = get_index_by_country_code(country_code); assert(index != -1); @@ -299,7 +299,7 @@ float country::calculate_tax_report_final(char* country_code, tax_report* report return country_map[index].calculate_tax_report_final(report); } -time_t country::get_invoice_date_to_use_for_tax_report(char* country_code, invoice* inv) +time_t country::get_invoice_date_to_use_for_tax_report(const char* country_code, invoice* inv) { s32 index = get_index_by_country_code(country_code); assert(index != -1); |
