From 5f25180b3d79d9a03952217cd77a16601ae0a6d0 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 25 Oct 2025 15:00:38 +0200 Subject: refactor tax rate loading --- src/importer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/importer.cpp') 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. -- cgit v1.2.3-70-g09d2