diff --git a/htdocs/accountancy/admin/accountmodel.php b/htdocs/accountancy/admin/accountmodel.php index 29cb1300f4c..5a2b7aa5e21 100644 --- a/htdocs/accountancy/admin/accountmodel.php +++ b/htdocs/accountancy/admin/accountmodel.php @@ -125,18 +125,10 @@ $tabfieldinsert[31] = "pcg_version,label,fk_country"; $tabrowid = array(); $tabrowid[31] = ""; -// Condition to show dictionary in setup page -$tabcond = array(); -$tabcond[31] = isModEnabled('accounting'); - // List of help for fields $tabhelp = array(); $tabhelp[31] = array('pcg_version'=>$langs->trans("EnterAnyCode")); -// List of check for fields (NOT USED YET) -$tabfieldcheck = array(); -$tabfieldcheck[31] = array(); - // Define elementList and sourceList (used for dictionary type of contacts "llx_c_type_contact") $elementList = array(); @@ -173,9 +165,12 @@ if (GETPOST('actionadd', 'alpha') || GETPOST('actionmodify', 'alpha')) { if ($fieldnamekey == 'pcg_version') { $fieldnamekey = 'Pcg_version'; } - if ($fieldnamekey == 'libelle' || ($fieldnamekey == 'label')) { + if ($fieldnamekey == 'label') { $fieldnamekey = 'Label'; } + if ($fieldnamekey == 'country') { + $fieldnamekey = "Country"; + } setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->transnoentities($fieldnamekey)), null, 'errors'); } @@ -453,6 +448,7 @@ if ($id) { print '
| '; @@ -625,8 +623,10 @@ if ($id) { fieldListAccountModel($fieldlist, $obj, $tabname[$id], 'edit'); } - print ' | '; - print ' | '; + print ''; + print ' '; + print ' '; + print ' | '; } else { $tmpaction = 'view'; $parameters = array('fieldlist'=>$fieldlist, 'tabname'=>$tabname[$id]); @@ -711,6 +711,8 @@ if ($id) { $i++; } + } else { + print '|||
| '.$langs->trans("NoRecordFound").' | '; } else { print ' | '; - $size = ''; $class = ''; - if ($fieldlist[$field] == 'code') { - $size = 'size="8" '; + if ($fieldlist[$field] == 'pcg_version') { + $class = 'width150'; } - if ($fieldlist[$field] == 'position') { - $size = 'size="4" '; + if ($fieldlist[$field] == 'label') { + $class = 'width300'; } - if ($fieldlist[$field] == 'libelle') { - $size = 'centpercent'; - } - if ($fieldlist[$field] == 'sortorder' || $fieldlist[$field] == 'sens' || $fieldlist[$field] == 'category_type') { - $size = 'size="2" '; - } - print ''; + print ''; print ' | '; } } diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 363fd2ecbb5..acff0845286 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -267,6 +267,7 @@ if ($action == 'setenablevatreversecharge') { } } + /* * View */ @@ -274,12 +275,16 @@ if ($action == 'setenablevatreversecharge') { $form = new Form($db); $title = $langs->trans('ConfigAccountingExpert'); + llxHeader('', $title); + $linkback = ''; //$linkback = '' . $langs->trans("BackToModuleList") . ''; print load_fiche_titre($title, $linkback, 'accountancy'); +print '|||
| '.$langs->trans('Options').' | '; @@ -387,9 +393,12 @@ foreach ($list as $key) { print '
| '.$langs->trans('BindingOptions').' | '; @@ -403,12 +412,12 @@ foreach ($list_binding as $key) { $label = $langs->trans($key); print ''.$label.' | '; // Value - print ''; + print ' | '; if ($key == 'ACCOUNTING_DATE_START_BINDING') { print $form->selectDate((getDolGlobalInt($key) ? (int) getDolGlobalInt($key) : -1), $key, 0, 0, 1); } elseif ($key == 'ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER') { $array = array(0=>$langs->trans("PreviousMonth"), 1=>$langs->trans("CurrentMonth"), 2=>$langs->trans("Fiscalyear")); - print $form->selectarray($key, $array, getDolGlobalInt('ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER', 0), 0, 0, 0, '', 0, 0, 0, '', 'onrightofpage'); + print $form->selectarray($key, $array, getDolGlobalInt('ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER', 0), 0, 0, 0, '', 0, 0, 0, '', 'onrightofpage width200'); } else { print ''; } @@ -457,7 +466,8 @@ if (getDolGlobalString('ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS')) { print ' | |
| ' . $langs->trans('OptionsAdvanced') . ' | '; @@ -533,6 +544,7 @@ if (getDolGlobalString('ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE')) { print '