diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-03 11:03:50 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-03 11:03:50 +0100 |
| commit | 83a9739b3aff75cf767db687bd531fa5283e0e72 (patch) | |
| tree | adf130cb7728a4358062a040f6322ecc236d0e6b /include/administration.hpp | |
| parent | 2218ef68056ebc5a3a416e2dd7e8e020fba60a4f (diff) | |
move invoice status to invoice extras struct. implement r/w
Diffstat (limited to 'include/administration.hpp')
| -rw-r--r-- | include/administration.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/administration.hpp b/include/administration.hpp index fede22a..d899987 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -280,6 +280,11 @@ typedef struct typedef struct { + invoice_status status; +} invoice_extras; + +typedef struct +{ char id[MAX_LEN_ID]; // I/[id] char sequential_number[MAX_LEN_SEQ_NUM]; // INV0000000000 - INV9999999999 time_t issued_at; @@ -298,13 +303,14 @@ typedef struct char currency[MAX_LEN_CURRENCY]; // 3 letter code bool is_triangulation; // True if addressee != customer - invoice_status status; bool is_outgoing; // Outgoing or incomming invoice. payment_information payment_means; - + contact supplier; contact customer; delivery_info addressee; + + invoice_extras extras; // Stored outside of invoice file. } invoice; typedef struct |
