Clean code
This commit is contained in:
parent
e7c044cc05
commit
2e79064098
@ -61,8 +61,6 @@ $list_binding = array(
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$accounting_mode = empty($conf->global->ACCOUNTING_MODE) ? 'RECETTES-DEPENSES' : $conf->global->ACCOUNTING_MODE;
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
if ($action == 'update') {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
@ -227,36 +225,6 @@ print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
|||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
|
|
||||||
// Default mode for calculating turnover (parameter ACCOUNTING_MODE)
|
|
||||||
/*
|
|
||||||
print '<table class="noborder centpercent">';
|
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td>' . $langs->trans('OptionMode') . '</td><td>' . $langs->trans('Description') . '</td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
print '<tr ' . $bc[false] . '><td width="200"><input type="radio" name="accounting_mode" value="RECETTES-DEPENSES"' . ($accounting_mode != 'CREANCES-DETTES' ? ' checked' : '') . '> ' . $langs->trans('OptionModeTrue') . '</td>';
|
|
||||||
print '<td colspan="2">' . nl2br($langs->trans('OptionModeTrueDesc'));
|
|
||||||
// Write info on way to count VAT
|
|
||||||
// if (! empty($conf->global->MAIN_MODULE_COMPTABILITE))
|
|
||||||
// {
|
|
||||||
// // print "<br>\n";
|
|
||||||
// // print nl2br($langs->trans('OptionModeTrueInfoModuleComptabilite'));
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// // print "<br>\n";
|
|
||||||
// // print nl2br($langs->trans('OptionModeTrueInfoExpert'));
|
|
||||||
// }
|
|
||||||
print "</td></tr>\n";
|
|
||||||
print '<tr ' . $bc[true] . '><td width="200"><input type="radio" name="accounting_mode" value="CREANCES-DETTES"' . ($accounting_mode == 'CREANCES-DETTES' ? ' checked' : '') . '> ' . $langs->trans('OptionModeVirtual') . '</td>';
|
|
||||||
print '<td colspan="2">' . nl2br($langs->trans('OptionModeVirtualDesc')) . "</td></tr>\n";
|
|
||||||
|
|
||||||
print "</table>\n";
|
|
||||||
|
|
||||||
|
|
||||||
print '<br>';
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Params
|
// Params
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -251,7 +251,7 @@ function dol_json_decode($json, $assoc = false)
|
|||||||
if ($out != '') {
|
if ($out != '') {
|
||||||
try {
|
try {
|
||||||
eval('$array = '.$out.';');
|
eval('$array = '.$out.';');
|
||||||
} catch(Exception $e) {
|
} catch (Exception $e) {
|
||||||
$array = array();
|
$array = array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user