summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/administration.hpp12
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