summaryrefslogtreecommitdiff
path: root/include/countries.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/countries.hpp')
-rw-r--r--include/countries.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/countries.hpp b/include/countries.hpp
index 0849ed6..8b4bb88 100644
--- a/include/countries.hpp
+++ b/include/countries.hpp
@@ -24,7 +24,9 @@ typedef struct
bool is_EU;
time_t (*get_default_invoice_expire_duration)();
void (*fill_tax_report_with_categories)(tax_report* report);
- char* (*get_tax_category_for_billing_item)(invoice* inv, billing_item* item);
+ 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);
} country_impl;
namespace country {
@@ -37,6 +39,8 @@ namespace country {
bool is_EU(char* country_code);
bool tax_is_implemented(char* country_code);
void fill_tax_report_with_categories(char* country_code, tax_report* report);
- char* get_tax_category_for_billing_item(char* country_code, invoice* inv, billing_item* item);
+ 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);
} \ No newline at end of file