FIX If we can change vendor status, we must be able to chane vendor code

This commit is contained in:
Laurent Destailleur 2020-02-08 11:26:16 +01:00
parent 9f9002d6a6
commit 02a96e163f

View File

@ -1903,8 +1903,6 @@ else
print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0); print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0);
} }
print '</td><td>'; print '</td><td>';
if (!empty($conf->fournisseur->enabled) && !empty($user->rights->fournisseur->lire))
{
print '<table class="nobordernopadding"><tr><td>'; print '<table class="nobordernopadding"><tr><td>';
if ((!$object->code_fournisseur || $object->code_fournisseur == -1) && $modCodeFournisseur->code_auto) if ((!$object->code_fournisseur || $object->code_fournisseur == -1) && $modCodeFournisseur->code_auto)
{ {
@ -1926,7 +1924,6 @@ else
$s = $modCodeFournisseur->getToolTip($langs, $object, 1); $s = $modCodeFournisseur->getToolTip($langs, $object, 1);
print $form->textwithpicto('', $s, 1); print $form->textwithpicto('', $s, 1);
print '</td></tr></table>'; print '</td></tr></table>';
}
print '</td></tr>'; print '</td></tr>';
} }