summaryrefslogtreecommitdiff
path: root/include/administration.hpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-15 17:28:00 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-15 17:28:00 +0200
commitf67e92f55b6223f2806c3d5ef1cbe2a638920562 (patch)
treef567321e40d03e6f1e6d31338ef3db2eff988e91 /include/administration.hpp
parent572caa74ed824fefa02eb81adc7639a783f243c7 (diff)
working on invoice form
Diffstat (limited to 'include/administration.hpp')
-rw-r--r--include/administration.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/administration.hpp b/include/administration.hpp
index 0917ee5..af9b29e 100644
--- a/include/administration.hpp
+++ b/include/administration.hpp
@@ -94,18 +94,19 @@ typedef struct
char sequential_number[16]; // INV0000000000 - INV9999999999
char customer_id[16];
char supplier_id[16];
+ address shipping_address;
time_t issued_at;
time_t expires_at;
time_t delivered_at;
- char document[255];
- list_t billing_items;
+ char document[255]; // path to copy of document for incomming invoice.
char project_id[16];
char cost_center_id[16];
+
+ list_t billing_items;
s32 total;
s32 tax;
s32 net;
invoice_status status;
- address shipping_address;
char currency[8];
time_t keep_untill;
time_t payment_on_account_date;
@@ -158,6 +159,7 @@ u32 administration_get_project_count();
u32 administration_get_projects(u32 page_index, u32 page_size, project* buffer);
bool administration_is_project_valid(project data);
project administration_create_empty_project();
+u32 administration_get_all_projects(project* buffer);
u32 administration_get_tax_bracket_count();
u32 administration_get_tax_brackets(country_tax_bracket* buffer);