summaryrefslogtreecommitdiff
path: root/src/importer.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 15:00:38 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 15:00:38 +0200
commit5f25180b3d79d9a03952217cd77a16601ae0a6d0 (patch)
tree2f06334f7d1ad7728c145143e7cbf86a72b24e0e /src/importer.cpp
parentebefd3d10af8d79e765030c263aa560cbb6420d2 (diff)
refactor tax rate loading
Diffstat (limited to 'src/importer.cpp')
-rw-r--r--src/importer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/importer.cpp b/src/importer.cpp
index 4f78d20..e3d8048 100644
--- a/src/importer.cpp
+++ b/src/importer.cpp
@@ -257,9 +257,8 @@ static int _ai_document_to_invoice_t(void *arg)
inv.status = invoice_status::INVOICE_RECEIVED;
- // Set customer or supplier depending on incomming or outgoing.
- contact my_info = administration::company_info_get();
- //memops::copy(&inv.customer, &my_info, sizeof(contact));
+ inv.is_triangulation = !memops::equals(&inv.addressee.address, &inv.customer.address, sizeof(address));
+
strops::copy(inv.customer.id, MY_COMPANY_ID, MAX_LEN_ID);
// Project and cost centers cannot be interpreted from file so are set to 0.