diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 23d259fd2e1..2b0dd39dc83 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -816,7 +816,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' } } - if ($object->fournisseur && $conf->global->MAIN_FEATURES_LEVEL >= 2) + if ($object->fournisseur) { print ''; print $langs->trans('SupplierCode').''; @@ -833,8 +833,9 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' if ($conf->commande->enabled && $user->rights->commande->lire) $elementTypeArray['order']=$langs->transnoentitiesnoconv('Orders'); if ($conf->facture->enabled && $user->rights->facture->lire) $elementTypeArray['invoice']=$langs->transnoentitiesnoconv('Invoices'); if ($conf->contrat->enabled && $user->rights->contrat->lire) $elementTypeArray['contract']=$langs->transnoentitiesnoconv('Contracts'); - - if (! empty($conf->stripe->enabled) && ! empty($conf->stripeconnect->enabled)) + } + + if (! empty($conf->stripe->enabled) && ! empty($conf->stripeconnect->enabled) && $conf->global->MAIN_FEATURES_LEVEL >= 2) { $permissiontowrite = $user->rights->societe->creer; $stripesupplieracc = $stripe->getStripeAccount($service, $object->id); // Get Stripe OAuth connect account (no network access here) @@ -868,7 +869,6 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' } print ''; } - } print ''; print '';