summaryrefslogtreecommitdiff
path: root/include/administration.hpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-09-06 17:52:54 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-09-06 17:52:54 +0200
commit17e035839a19a8b10d329c28ccaa44ff608d3a33 (patch)
treeac1e8a9bd087d24c695d07fa492fe2d729a08b2e /include/administration.hpp
parent68d0ef1586a90ddef6d0cef7ebd593828282c76a (diff)
peppol file generation work
Diffstat (limited to 'include/administration.hpp')
-rw-r--r--include/administration.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/administration.hpp b/include/administration.hpp
index 5e6f0c1..015b1c3 100644
--- a/include/administration.hpp
+++ b/include/administration.hpp
@@ -27,7 +27,7 @@ typedef struct
char id[MAX_LEN_ID]; // T/[id]
char country_code[MAX_LEN_COUNTRY_CODE]; // 2 letter country code
float rate; // 0-100%
- char description[MAX_LEN_SHORT_DESC];
+ char category_code[MAX_LEN_CODE]; // Category code. https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/
} country_tax_bracket;
typedef struct
@@ -107,6 +107,7 @@ typedef struct
float net_per_item;
float discount;
bool discount_is_percentage;
+ float allowance; // Total discount.
float net;
char currency[MAX_LEN_CURRENCY]; // 3 letter code
char tax_bracket_id[MAX_LEN_ID]; // T/[id]
@@ -222,6 +223,7 @@ typedef struct
float total;
float tax;
float net;
+ float allowance;
} tax_subtotal;
typedef struct
@@ -243,6 +245,7 @@ typedef struct
float total;
float tax;
float net;
+ float allowance;
char currency[MAX_LEN_CURRENCY]; // 3 letter code
bool is_triangulation; // True if addressee != customer
@@ -328,6 +331,7 @@ u32 administration_tax_bracket_count();
bool administration_tax_bracket_add(country_tax_bracket data);
bool administration_tax_bracket_update(country_tax_bracket data);
+bool administration_tax_bracket_get_by_id(char* id, country_tax_bracket* buffer);
u32 administration_tax_bracket_get_all(country_tax_bracket* buffer);
u32 administration_tax_bracket_get_by_country(country_tax_bracket* buffer, char* country_code);