Fix: Field must be invisible
This commit is contained in:
parent
d14fcf617c
commit
863d57004e
@ -1879,19 +1879,23 @@ else
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Accountancy code
|
// Accountancy code
|
||||||
print "<tr>";
|
if (! empty($conf->global->USER_ENABLE_ACCOUNTANCY_CODE)) // For the moment field is not used so must not appeared.
|
||||||
print '<td valign="top">'.$langs->trans("AccountancyCode").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($caneditfield)
|
|
||||||
{
|
{
|
||||||
print '<input size="30" type="text" class="flat" name="accountancy_code" value="'.$object->accountancy_code.'">';
|
print "<tr>";
|
||||||
|
print '<td valign="top">'.$langs->trans("AccountancyCode").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($caneditfield)
|
||||||
|
{
|
||||||
|
print '<input size="30" type="text" class="flat" name="accountancy_code" value="'.$object->accountancy_code.'">';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<input type="hidden" name="accountancy_code" value="'.$object->accountancy_code.'">';
|
||||||
|
print $object->accountancy_code;
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
|
print "</tr>";
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<input type="hidden" name="accountancy_code" value="'.$object->accountancy_code.'">';
|
|
||||||
print $object->accountancy_code;
|
|
||||||
}
|
|
||||||
print '</td>';
|
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
print '<tr><td valign="top">'.$langs->trans("Status").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Status").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user