diff --git a/htdocs/soc.php b/htdocs/soc.php index 33355c70f32..a84ec5262df 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -52,6 +52,9 @@ if ($action == 'add') $soc->capital = $HTTP_POST_VARS["capital"]; $soc->tva_intra = $HTTP_POST_VARS["tva_intra_code"] . $HTTP_POST_VARS["tva_intra_num"]; + $soc->forme_juridique_id = $HTTP_POST_VARS["forme_juridique_id"]; + $soc->effectif_id = $HTTP_POST_VARS["effectif_id"]; + $soc->client = $client; $soc->fournisseur = $fournisseur; @@ -78,7 +81,8 @@ if ($action == 'update') $soc->capital = $HTTP_POST_VARS["capital"]; $soc->tva_intra = $HTTP_POST_VARS["tva_intra_code"] . $HTTP_POST_VARS["tva_intra_num"]; - + $soc->forme_juridique_id = $HTTP_POST_VARS["forme_juridique_id"]; + $soc->effectif_id = $HTTP_POST_VARS["effectif_id"]; $soc->client = $client; $soc->fournisseur = $fournisseur; @@ -93,6 +97,7 @@ llxHeader(); if ($action == 'create') { + $soc = new Societe($db); print '