From d976c1227f367a4547a004597b8d360a8958eba9 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 10 Oct 2025 22:03:05 +0200 Subject: working on NL tax reports --- include/countries.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/countries.hpp') 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 -- cgit v1.2.3-70-g09d2