diff --git a/htdocs/adherents/admin/adherent.php b/htdocs/adherents/admin/adherent.php
index cb1fdfac816..b2c5dc6c0d8 100644
--- a/htdocs/adherents/admin/adherent.php
+++ b/htdocs/adherents/admin/adherent.php
@@ -183,6 +183,10 @@ if (! empty($conf->banque->enabled) && ! empty($conf->societe->enabled) && ! emp
if (! empty($conf->banque->enabled) && ! empty($conf->societe->enabled) && ! empty($conf->facture->enabled)) $arraychoices['bankviainvoice']=$langs->trans("MoreActionBankViaInvoice");
print '
';
print $form->selectarray('ADHERENT_BANK_USE',$arraychoices,$conf->global->ADHERENT_BANK_USE,0);
+if ($conf->global->ADHERENT_BANK_USE == 'bankdirect' || $conf->global->ADHERENT_BANK_USE == 'bankviainvoice')
+{
+ print '
'.$langs->trans("ABankAccountMustBeDefinedOnPaymentModeSetup").' ';
+}
print ' | ';
print "\n";
diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php
index 6cf9c84d265..e0bea2bbf52 100644
--- a/htdocs/admin/barcode.php
+++ b/htdocs/admin/barcode.php
@@ -44,7 +44,12 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
if ($action == 'setbarcodeproducton')
{
- $res=dolibarr_set_const($db, "BARCODE_PRODUCT_ADDON_NUM", GETPOST('value'), 'chaine', 0, '', $conf->entity);
+ $barcodenumberingmodule = GETPOST('value', 'alpha');
+ $res=dolibarr_set_const($db, "BARCODE_PRODUCT_ADDON_NUM", $barcodenumberingmodule, 'chaine', 0, '', $conf->entity);
+ if ($barcodenumberingmodule == 'mod_barcode_product_standard' && empty($conf->global->BARCODE_STANDARD_PRODUCT_MASK))
+ {
+ $res=dolibarr_set_const($db, "BARCODE_STANDARD_PRODUCT_MASK", '020{000000000}', 'chaine', 0, '', $conf->entity);
+ }
}
elseif ($action == 'setbarcodeproductoff')
{
@@ -406,14 +411,14 @@ if ($conf->produit->enabled)
if ($conf->global->BARCODE_PRODUCT_ADDON_NUM == "$file")
{
- print '';
- print img_picto($langs->trans("Activated"),'switch_on');
+ print ' | ';
+ print img_picto($langs->trans("Activated"), 'switch_on');
print ' | ';
}
else
{
- print '';
- print img_picto($langs->trans("Disabled"),'switch_off');
+ print ' | ';
+ print img_picto($langs->trans("Disabled"), 'switch_off');
print ' | ';
}
print '';
diff --git a/htdocs/core/modules/barcode/mod_barcode_product_standard.php b/htdocs/core/modules/barcode/mod_barcode_product_standard.php
index 97121eebcfd..03eccad608a 100644
--- a/htdocs/core/modules/barcode/mod_barcode_product_standard.php
+++ b/htdocs/core/modules/barcode/mod_barcode_product_standard.php
@@ -95,8 +95,11 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
$tooltip=$langs->trans("GenericMaskCodes",$langs->transnoentities("BarCode"),$langs->transnoentities("BarCode"));
$tooltip.=$langs->trans("GenericMaskCodes3");
- $tooltip.=$langs->trans("GenericMaskCodes4c");
- $tooltip.=$langs->trans("GenericMaskCodes5");
+ $tooltip.=''.$langs->trans("Example").': ';
+ $tooltip.='020{000000000} (for internal use) ';
+ $tooltip.='9771234{00000} (example of ISSN code with prefix 1234) ';
+ $tooltip.='9791234{00000} (example of ISMN code with prefix 1234) ';
+ //$tooltip.=$langs->trans("GenericMaskCodes5");
// Mask parameter
//$texte.= ' | | '.$langs->trans("Mask").' ('.$langs->trans("BarCodeModel").'): | ';
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index ce912b72266..9c8c3d60854 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -1854,4 +1854,5 @@ ConfirmUnactivation=Confirm module reset
OnMobileOnly=On small screen (smartphone) only
DisableProspectCustomerType=Disable the "Prospect + Customer" third party type (so third party must be Prospect or Customer but can't be both)
MAIN_OPTIMIZEFORTEXTBROWSER=Simplify interface for blind person
-MAIN_OPTIMIZEFORTEXTBROWSERDesc=Enable this option if you are a blind person, or use application from a text browser like lynx or links.
\ No newline at end of file
+MAIN_OPTIMIZEFORTEXTBROWSERDesc=Enable this option if you are a blind person, or use application from a text browser like lynx or links.
+ABankAccountMustBeDefinedOnPaymentModeSetup=Note: The bank account must be defined on the module of each payment mode (Paypal, Stripe, ...) to have this feature working.
\ No newline at end of file