From bd3f2b84742067d0b9049b9f42f2266f94dbb0f9 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 26 Sep 2025 18:41:40 +0200 Subject: refactor customer_id and supplier_id out of invoice --- include/administration.hpp | 4 +--- include/log.hpp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/administration.hpp b/include/administration.hpp index 130993f..a91a4e3 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -247,9 +247,6 @@ typedef struct { char id[MAX_LEN_ID]; // I/[id] char sequential_number[MAX_LEN_SEQ_NUM]; // INV0000000000 - INV9999999999 - char customer_id[MAX_LEN_ID]; // C/[id] - char supplier_id[MAX_LEN_ID]; // C/[id] - contact addressee; time_t issued_at; time_t expires_at; time_t delivered_at; @@ -272,6 +269,7 @@ typedef struct contact supplier; contact customer; + contact addressee; } invoice; typedef struct diff --git a/include/log.hpp b/include/log.hpp index 4e3f4f5..cdb6a9f 100644 --- a/include/log.hpp +++ b/include/log.hpp @@ -36,6 +36,7 @@ typedef struct { log* get_log(); +void log_clear(); void log_aerr(a_err errors); void log_info(const char* fmt, ...) IM_FMTARGS(2); void log_error(const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file -- cgit v1.2.3-70-g09d2