From 4babfaf06923efba5d644816dd2846f554fa31c8 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Wed, 13 May 2026 14:29:02 +0200 Subject: [PATCH] NEW Accountancy - Export Quadra - Add option to export thirdparty account only if not existing (#38208) Co-authored-by: Laurent Destailleur --- htdocs/accountancy/class/accountancyexport.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index ed333f8f39b..db0569598b8 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -5,7 +5,7 @@ * Copyright (C) 2015 Florian Henry * Copyright (C) 2015 Raphaƫl Doursenaud * Copyright (C) 2016 Pierre-Henry Favre - * Copyright (C) 2016-2025 Alexandre Spangaro + * Copyright (C) 2016-2026 Alexandre Spangaro * Copyright (C) 2022 Lionel Vessiller * Copyright (C) 2013-2017 Olivier Geffroy * Copyright (C) 2017 Elarifr. Ari Elbaz @@ -950,7 +950,15 @@ class AccountancyExport } $tab['filler2'] = str_repeat(' ', 110); - $tab['Maj'] = 2; // Partial update (alpha key, label, address, collectif, RIB) + + // Field "Maj" (static position 1 char): + // blank = no update if account already exists + // 2 = partial update (alpha key, label, address, collectif, RIB) + if (getDolGlobalString('ACCOUNTING_EXPORT_QUADRATUS_DISABLE_THIRDPARTY_UPDATE')) { + $tab['Maj'] = ' '; + } else { + $tab['Maj'] = 2; + } if ($line->doc_type == 'customer_invoice') { $tab['type_compte'] = 'C';