Fix: on ne pouvait pas entrer de code client ou fournisseur en édition avec le modèle zebre lorsqu'ils n'étaient pas déterminé à la création

This commit is contained in:
Regis Houssin 2007-10-29 10:59:29 +00:00
parent 43702f93e8
commit eedca731e5

View File

@ -673,7 +673,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
print '<td width="25%">'.$langs->trans('CustomerCode').'</td><td width="25%">'; print '<td width="25%">'.$langs->trans('CustomerCode').'</td><td width="25%">';
print '<table class="nobordernopadding"><tr><td>'; print '<table class="nobordernopadding"><tr><td>';
if ($soc->codeclient_modifiable()) if ($soc->codeclient_modifiable() || !$soc->code_client)
{ {
print '<input type="text" name="code_client" size="16" value="'.$soc->code_client.'" maxlength="15">'; print '<input type="text" name="code_client" size="16" value="'.$soc->code_client.'" maxlength="15">';
} }
@ -700,7 +700,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
print '<td>'.$langs->trans('SupplierCode').'</td><td>'; print '<td>'.$langs->trans('SupplierCode').'</td><td>';
print '<table class="nobordernopadding"><tr><td>'; print '<table class="nobordernopadding"><tr><td>';
if ($soc->codefournisseur_modifiable()) if ($soc->codefournisseur_modifiable() || !$soc->code_fournisseur)
{ {
print '<input type="text" name="code_fournisseur" size="16" value="'.$soc->code_fournisseur.'" maxlength="15">'; print '<input type="text" name="code_fournisseur" size="16" value="'.$soc->code_fournisseur.'" maxlength="15">';
} }