summaryrefslogtreecommitdiff
path: root/src/countries.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-18 23:10:20 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-18 23:10:20 +0200
commit18bfbc423d188683973a0a3d6c31c9225158e262 (patch)
treee88ab359e6455d44dc7687769ae1281133485acc /src/countries.cpp
parente5e059538bbbf1993df854bd95e9bbf4bb1d7aaa (diff)
tax rate refactor
Diffstat (limited to 'src/countries.cpp')
-rw-r--r--src/countries.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/countries.cpp b/src/countries.cpp
index 7170e5b..d03848b 100644
--- a/src/countries.cpp
+++ b/src/countries.cpp
@@ -101,4 +101,12 @@ time_t country::get_invoice_date_to_use_for_tax_report(char* country_code, invoi
assert(index != -1);
return country_map[index].get_invoice_date_to_use_for_tax_report(inv);
+}
+
+u32 country::get_available_tax_rates(char* country_code, tax_rate* buffer, u32 buffer_size)
+{
+ s32 index = get_index_by_country_code(country_code);
+ assert(index != -1);
+
+ return country_map[index].get_available_tax_rates(buffer, buffer_size);
} \ No newline at end of file