diff --git a/htdocs/soc.php b/htdocs/soc.php index 590367cf700..fe1a6cd7f40 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -34,8 +34,6 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } -llxHeader(); - if ($action == 'add') { $soc = new Societe($db); @@ -50,6 +48,11 @@ if ($action == 'add') $soc->url = ereg_replace( "http://", "", $url ); $soc->siren = $siren; + $soc->siret = $HTTP_POST_VARS["siret"]; + $soc->ape = $HTTP_POST_VARS["ape"]; + $soc->capital = $HTTP_POST_VARS["capital"]; + $soc->tva_intra = $HTTP_POST_VARS["tva_intra_code"] . $HTTP_POST_VARS["tva_intra_num"]; + $soc->client = $client; $soc->fournisseur = $fournisseur; @@ -87,6 +90,7 @@ if ($action == 'update') * * */ +llxHeader(); if ($action == 'create') { @@ -95,27 +99,41 @@ if ($action == 'create') print ''; print ''; - print '
| Nom | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Adresse | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| CP | ';
+ print '
Vous pouvez vérifier ce numéro sur ce site'; + print ' Vous pouvez vérifier ce numéro sur le site de la commission européenne'; print ' | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Client | ';
+ print 'Fiche société';
+
+ if ($soc->client)
+ {
+ print 'Fiche commerciale';
+ }
+ if ($soc->fournisseur)
+ {
+ print 'Fiche fournisseur';
+ }
+ print ' ';
+ print ''; + print '
'; + print 'Notifications'; + print ''; /* * */ | |||||||||||||||||||||||||||||||||||||||||||||||||||