diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index b3f1d7a5d51..1b7c67e40f9 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -262,11 +262,11 @@ if ($action == 'setforcedate') } } -if ($action == 'set_FAC_AUTO_FILLJS') +if ($action == 'set_INVOICE_AUTO_FILLJS') { - $freetext = GETPOST('FAC_AUTO_FILLJS'); // No alpha here, we want exact string + $freetext = GETPOST('INVOICE_AUTO_FILLJS'); // No alpha here, we want exact string - $res = dolibarr_set_const($db, "FAC_AUTO_FILLJS",$freetext,'chaine',0,'',$conf->entity); + $res = dolibarr_set_const($db, "INVOICE_AUTO_FILLJS",$freetext,'chaine',0,'',$conf->entity); if (! $res > 0) $error++; @@ -754,11 +754,11 @@ print ''; $var=! $var; print '
'; print ''; -print ''; +print ''; print ''; print $langs->trans("JSOnPaimentBill"); print ''; -print $form->selectyesno("FAC_AUTO_FILLJS",$conf->global->FAC_AUTO_FILLJS,1); +print $form->selectyesno("INVOICE_AUTO_FILLJS",$conf->global->INVOICE_AUTO_FILLJS,1); print ''; print ''; print "\n"; diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 72fd65d686b..37b6ebdc3eb 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -432,7 +432,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie '; print ' });'."\n"; - if(!empty($conf->global->FAC_AUTO_FILLJS)){ + if(!empty($conf->global->INVOICE_AUTO_FILLJS)){ //Add js for AutoFill print ' $(document).ready(function () {'; print ' $(".AutoFillAmout").on(\'click touchstart\', function(){ @@ -650,7 +650,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie if ($action != 'add_paiement') { - if(!empty($conf->global->FAC_AUTO_FILLJS)) + if(!empty($conf->global->INVOICE_AUTO_FILLJS)) print img_picto("Auto fill",'rightarrow', "class='AutoFillAmout' data-rowname='".$namef."' data-value='".($sign * $remaintopay)."'"); print ''; print ''; @@ -673,7 +673,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie if ($action != 'add_paiement') { - if(!empty($conf->global->FAC_AUTO_FILLJS)) + if(!empty($conf->global->INVOICE_AUTO_FILLJS)) print img_picto("Auto fill",'rightarrow', "class='AutoFillAmout' data-rowname='".$namef."' data-value='".($sign * $multicurrency_remaintopay)."'"); print ''; print ''; diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index dd9d8fae87f..f82c8b62530 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -403,7 +403,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie $i = 0; print '
'; - if(!empty($conf->global->FAC_AUTO_FILLJS)){ + if(!empty($conf->global->INVOICE_AUTO_FILLJS)){ //Add js for AutoFill print "\n".'