diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-10 22:03:05 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-10 22:03:05 +0200 |
| commit | d976c1227f367a4547a004597b8d360a8958eba9 (patch) | |
| tree | 891b89263176375f058598b629b145177531a54a /include/countries.hpp | |
| parent | 1c53bd3ac83cc7a985983ac656bc2599276808a4 (diff) | |
working on NL tax reports
Diffstat (limited to 'include/countries.hpp')
| -rw-r--r-- | include/countries.hpp | 8 |
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 |
