diff --git a/htdocs/soc.php b/htdocs/soc.php index a95143f40cc..dd8db6652e3 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -115,7 +115,7 @@ if ($_GET["action"] == 'create') /* * Fiche societe en mode création */ - + $soc->fournisseur=0; if ($_GET["type"]=='f') { $soc->fournisseur=1; } if ($_GET["type"]=='c') { $soc->client=1; } if ($_GET["type"]=='p') { $soc->client=2; } @@ -126,7 +126,6 @@ if ($_GET["action"] == 'create') print $mesg; print '
'; print ''; - print ''; print ''; print ''; @@ -154,7 +153,7 @@ if ($_GET["action"] == 'create') print ''; print ''; print ''."\n"; print ''."\n"; print ''."\n";
'.$langs->trans('Name').'
Capital '.MAIN_MONNAIE.'
Forme juridique'; - $form->select_forme_juridique($soc->forme_juridique_code); + $form->select_forme_juridique($soc->forme_juridique_code); print '
Effectif'; @@ -175,7 +174,7 @@ if ($_GET["action"] == 'create') print ''.$langs->trans('Supplier').''."\n"; - $form->selectyesnonum("fournisseur",0); + $form->selectyesnonum("fournisseur",$soc->fournisseur); print '