diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php
index a61eb4852bd..8e548f8992e 100644
--- a/htdocs/accountancy/admin/index.php
+++ b/htdocs/accountancy/admin/index.php
@@ -63,22 +63,22 @@ $list = array (
* Actions
*/
-$compta_mode = defined('ACCOUNTING_MODE')?ACCOUNTING_MODE:'RECETTES-DEPENSES';
+$accounting_mode = defined('ACCOUNTING_MODE')?ACCOUNTING_MODE:'RECETTES-DEPENSES';
if ($action == 'update')
{
$error = 0;
- $compta_modes = array(
+ $accounting_modes = array(
'RECETTES-DEPENSES',
'CREANCES-DETTES'
);
- $compta_mode = GETPOST('compta_mode','alpha');
+ $accounting_mode = GETPOST('accounting_mode','alpha');
- if (in_array($compta_mode,$compta_modes)) {
+ if (in_array($accounting_mode,$accounting_modes)) {
- if (!dolibarr_set_const($db, 'ACCOUNTING_MODE', $compta_mode, 'chaine', 0, '', $conf->entity)) {
+ if (!dolibarr_set_const($db, 'ACCOUNTING_MODE', $accounting_mode, 'chaine', 0, '', $conf->entity)) {
$error++;
}
} else {
@@ -165,7 +165,7 @@ print '
';
print '';
print ''.$langs->trans('OptionMode').' '.$langs->trans('Description').' ';
print " \n";
-print ' '.$langs->trans('OptionModeTrue').' ';
+print ' '.$langs->trans('OptionModeTrue').' ';
print ''.nl2br($langs->trans('OptionModeTrueDesc'));
// Write info on way to count VAT
//if (! empty($conf->global->MAIN_MODULE_COMPTABILITE))
@@ -179,7 +179,7 @@ print ' '.nl2br($langs->trans('OptionModeTrueDesc'));
// // print nl2br($langs->trans('OptionModeTrueInfoExpert'));
//}
print " \n";
-print ' '.$langs->trans('OptionModeVirtual').' ';
+print ' '.$langs->trans('OptionModeVirtual').' ';
print ''.nl2br($langs->trans('OptionModeVirtualDesc'))." \n";
print '';
diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php
index 0bb83eae3c4..610bf371f29 100644
--- a/htdocs/admin/compta.php
+++ b/htdocs/admin/compta.php
@@ -53,23 +53,23 @@ $list = array(
* Actions
*/
-$compta_mode = defined('ACCOUNTING_MODE')?ACCOUNTING_MODE:'RECETTES-DEPENSES';
+$accounting_mode = defined('ACCOUNTING_MODE')?ACCOUNTING_MODE:'RECETTES-DEPENSES';
if ($action == 'update')
{
$error = 0;
- $compta_modes = array(
+ $accounting_modes = array(
'RECETTES-DEPENSES',
'CREANCES-DETTES'
);
- $compta_mode = GETPOST('compta_mode','alpha');
+ $accounting_mode = GETPOST('accounting_mode','alpha');
- if (in_array($compta_mode,$compta_modes)) {
+ if (in_array($accounting_mode,$accounting_modes)) {
- if (!dolibarr_set_const($db, 'ACCOUNTING_MODE', $compta_mode, 'chaine', 0, '', $conf->entity)) {
+ if (!dolibarr_set_const($db, 'ACCOUNTING_MODE', $accounting_mode, 'chaine', 0, '', $conf->entity)) {
$error++;
}
} else {
@@ -118,7 +118,7 @@ print '