diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-17 10:30:27 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-17 10:30:27 +0200 |
| commit | 885f413e9ae887979a59d0ca7238246429dd81ad (patch) | |
| tree | 07d2dabe1ae3fadf36d8526f3fb156c7796fb06b /include/administration.hpp | |
| parent | 8c1eb3246c8f738867b2ddeb44e48f8332633963 (diff) | |
set invoice finals if invoice currency != main currency
Diffstat (limited to 'include/administration.hpp')
| -rw-r--r-- | include/administration.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/administration.hpp b/include/administration.hpp index 616cc0a..ad94c37 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -114,7 +114,7 @@ typedef struct bool discount_is_percentage; float allowance; // Total discount. float net; // Total net, with discount. - char currency[MAX_LEN_CURRENCY]; // 3 letter code + char currency[MAX_LEN_CURRENCY]; // 3 letter code, always matches invoice currency. char tax_rate_id[MAX_LEN_ID]; // T/[id] float tax; float total; @@ -243,11 +243,11 @@ typedef struct char cost_center_id[MAX_LEN_ID]; // For incomming invoices. optional. list_t billing_items; - // Total, tax and net are calculated from billing items. - float total; - float tax; - float net; - float allowance; + // Calculated from billing items, represented in invoice currency. + float orig_total, orig_tax, orig_net, orig_allowance; + + // Represented in main currency. + float total, tax, net, allowance; char currency[MAX_LEN_CURRENCY]; // 3 letter code bool is_triangulation; // True if addressee != customer |
