Fix mention for france, only for FR country

This commit is contained in:
Laurent Destailleur 2020-10-01 09:34:10 +02:00
parent 3f1c9999db
commit 91f0429bd2
2 changed files with 3 additions and 5 deletions

View File

@ -205,7 +205,7 @@ class html_cerfafr extends ModeleDon
$form = str_replace('__FrenchEligibility__', $frencheligibility, $form);
$art200 = '';
if (preg_match('/fr/i', $outputlangs->defaultlang)) {
if ($mysoc->country_code == 'FR') {
if ($conf->global->DONATION_ART200 >= 1)
{
$art200 = '<input type="checkbox" disabled="true" checked="checked" >200 du CGI';
@ -216,7 +216,7 @@ class html_cerfafr extends ModeleDon
$form = str_replace('__ARTICLE200__', $art200, $form);
$art238 = '';
if (preg_match('/fr/i', $outputlangs->defaultlang)) {
if ($mysoc->country_code == 'FR') {
if ($conf->global->DONATION_ART238 >= 1)
{
$art238 = '<input type="checkbox" disabled="true" checked="checked" >238 bis du CGI';
@ -227,7 +227,7 @@ class html_cerfafr extends ModeleDon
$form = str_replace('__ARTICLE238__', $art238, $form);
$art978 = '';
if (preg_match('/fr/i', $outputlangs->defaultlang)) {
if ($mysoc->country_code == 'FR') {
if ($conf->global->DONATION_ART978 >= 1)
{
$art978 = '<input type="checkbox" disabled="true" checked="checked" >978 du CGI';

View File

@ -555,8 +555,6 @@ Module57Name=Payments by Direct Debit
Module57Desc=Management of Direct Debit orders. It includes generation of SEPA file for European countries.
Module58Name=ClickToDial
Module58Desc=Integration of a ClickToDial system (Asterisk, ...)
Module59Name=Bookmark4u
Module59Desc=Add function to generate Bookmark4u account from a Dolibarr account
Module60Name=Stickers
Module60Desc=Management of stickers
Module70Name=Interventions