diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-18 23:10:20 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-18 23:10:20 +0200 |
| commit | 18bfbc423d188683973a0a3d6c31c9225158e262 (patch) | |
| tree | e88ab359e6455d44dc7687769ae1281133485acc /include/countries.hpp | |
| parent | e5e059538bbbf1993df854bd95e9bbf4bb1d7aaa (diff) | |
tax rate refactor
Diffstat (limited to 'include/countries.hpp')
| -rw-r--r-- | include/countries.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/countries.hpp b/include/countries.hpp index 8b4bb88..68b6fa0 100644 --- a/include/countries.hpp +++ b/include/countries.hpp @@ -20,13 +20,14 @@ typedef struct { - char* country_code; - bool is_EU; - time_t (*get_default_invoice_expire_duration)(); - void (*fill_tax_report_with_categories)(tax_report* report); - bool (*add_billing_item_to_tax_report)(tax_report* report, invoice* inv, billing_item* item); - float (*calculate_tax_report_final)(tax_report* report); - time_t (*get_invoice_date_to_use_for_tax_report)(invoice* inv); + char* country_code; + bool is_EU; + time_t (*get_default_invoice_expire_duration)(); + void (*fill_tax_report_with_categories)(tax_report* report); + bool (*add_billing_item_to_tax_report)(tax_report* report, invoice* inv, billing_item* item); + float (*calculate_tax_report_final)(tax_report* report); + time_t (*get_invoice_date_to_use_for_tax_report)(invoice* inv); + u32 (*get_available_tax_rates)(tax_rate* buffer, u32 buffer_size); } country_impl; namespace country { @@ -41,6 +42,6 @@ namespace country { 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); - + 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); }
\ No newline at end of file |
