From deeb710d2bdc32c71aacf5adb6594b9fd0c7410e Mon Sep 17 00:00:00 2001 From: Joachim Kueter Date: Tue, 17 Feb 2026 18:04:02 +0100 Subject: [PATCH] FIX #37259 - Reverse Charge also for non-EEC countries (#37260) See issue #37259: Currently, reverse charge is only applied, if the supplier is based in the EEC. At least for a German B2B customers, reverse charge has to get applied to any supplier outside of the home country. The fix is non-invasive by providing a const ACCOUNTING_REVERSE_CHARGE_ALSO_NON_EEC to allow for a broader application of the already implemented RC rules. --- htdocs/accountancy/journal/purchasesjournal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index b897f66dbb2..956969ddd84 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -297,7 +297,7 @@ if ($result) { } // VAT Reverse charge - if (($mysoc->country_code == 'FR' || getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) && $obj->vat_reverse_charge == 1 && in_array($obj->country_code, $country_code_in_EEC)) { + if (($mysoc->country_code == 'FR' || getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) && $obj->vat_reverse_charge == 1 && (in_array($obj->country_code, $country_code_in_EEC) || getDolGlobalString('ACCOUNTING_REVERSE_CHARGE_ALSO_NON_EEC'))) { $rcvatdata = getTaxesFromId($obj->product_buy_vat . ($obj->product_buy_default_vat_code ? ' (' . $obj->product_buy_default_vat_code . ')' : ''), $mysoc, $mysoc, 0); $rcc_compta_tva = (!empty($vatdata['accountancy_code_vat_reverse_charge_credit']) ? $vatdata['accountancy_code_vat_reverse_charge_credit'] : $rcctva); $rcd_compta_tva = (!empty($vatdata['accountancy_code_vat_reverse_charge_debit']) ? $vatdata['accountancy_code_vat_reverse_charge_debit'] : $rcdtva);