Hum... Now it's work ! Little fix

This commit is contained in:
Spangaro Alexandre 2012-09-30 14:40:31 +02:00
parent 3e4fd761a5
commit 8a99eedc6c

View File

@ -57,8 +57,6 @@ if ($action == 'setcomptamode')
} }
$chartofaccounts = defined('CHARTOFACCOUNTS')?CHARTOFACCOUNTS:'';
if ($action == 'setchart') if ($action == 'setchart')
{ {
$chartofaccounts = GETPOST('chartofaccounts','alpha'); $chartofaccounts = GETPOST('chartofaccounts','alpha');
@ -176,7 +174,7 @@ if (! empty($conf->global->ACCOUNTING_SELECTCHART) && ! empty($conf->accounting-
print '<tr '.$bc[$var].'>'; print '<tr '.$bc[$var].'>';
print "<td>".$langs->trans("Selectchartofaccounts")."</td>"; print "<td>".$langs->trans("Selectchartofaccounts")."</td>";
print "<td>"; print "<td>";
print '<select class="flat" name="chq" id="chq">'; print '<select class="flat" name="chartofaccounts" id="chartofaccounts">';
print '<option value="0">'.$langs->trans("DoNotSuggestChart").'</option>'; print '<option value="0">'.$langs->trans("DoNotSuggestChart").'</option>';
$sql = "SELECT rowid, pcg_version, fk_pays, label, active"; $sql = "SELECT rowid, pcg_version, fk_pays, label, active";
@ -196,7 +194,7 @@ if (! empty($conf->global->ACCOUNTING_SELECTCHART) && ! empty($conf->accounting-
print '<option value="'.$row[0].'"'; print '<option value="'.$row[0].'"';
print $conf->global->CHARTOFACCOUNTS == $row[0] ? ' selected="selected"':''; print $conf->global->CHARTOFACCOUNTS == $row[0] ? ' selected="selected"':'';
print '>'.$row[1].'</option>'; print '>'.$row[1].' - '.$row[3].'</option>';
$i++; $i++;
} }