From 83a9739b3aff75cf767db687bd531fa5283e0e72 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 3 Jan 2026 11:03:50 +0100 Subject: move invoice status to invoice extras struct. implement r/w --- include/administration.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/administration.hpp') diff --git a/include/administration.hpp b/include/administration.hpp index fede22a..d899987 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -278,6 +278,11 @@ typedef struct char copy_path[MAX_LEN_PATH]; } document; +typedef struct +{ + invoice_status status; +} invoice_extras; + typedef struct { char id[MAX_LEN_ID]; // I/[id] @@ -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 -- cgit v1.2.3-70-g09d2