From 66804093cd2e4e68fb19dc7ce1beb3b8cad2932e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Feb 2024 18:27:57 +0100 Subject: [PATCH] MQ and GP are same country for default vat definition --- htdocs/core/lib/functions.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index bc8d2e7a2e9..c8b7adbb9aa 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7060,7 +7060,9 @@ function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer, // If the (seller country = buyer country) then the default VAT = VAT of the product sold. End of rule. if (($seller_country_code == $buyer_country_code) - || (in_array($seller_country_code, array('FR', 'MC')) && in_array($buyer_country_code, array('FR', 'MC')))) { // Warning ->country_code not always defined + || (in_array($seller_country_code, array('FR', 'MC')) && in_array($buyer_country_code, array('FR', 'MC'))) + || (in_array($seller_country_code, array('MQ', 'GP')) && in_array($buyer_country_code, array('MQ', 'GP'))) + ) { // Warning ->country_code not always defined //print 'VATRULE 2'; $tmpvat = get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice);