diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 71ebf563414..6228b9aee8e 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -404,6 +404,9 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC')) // Define if company use local taxes $mysoc->localtax1_assuj=((isset($conf->global->FACTURE_LOCAL_TAX1_OPTION) && $conf->global->FACTURE_LOCAL_TAX1_OPTION=='localtax1on')?1:0); $mysoc->localtax2_assuj=((isset($conf->global->FACTURE_LOCAL_TAX2_OPTION) && $conf->global->FACTURE_LOCAL_TAX2_OPTION=='localtax2on')?1:0); + + // For some countries, we need to invert our address with customer address + if ($mysoc->pays_code == 'DE' && ! isset($conf->global->MAIN_INVERT_SENDER_RECIPIENT)) $conf->global->MAIN_INVERT_SENDER_RECIPIENT=1; }