diff --git a/htdocs/soc.php b/htdocs/soc.php
index 43df6dad4d0..b8bbc49724f 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -75,6 +75,8 @@ if (($_POST["action"] == 'add' && (! defined("COMPANY_CREATE_TWO_STEPS") || $ste
$soc->codeclient_modifiable = stripslashes($_POST["codeclient_modifiable"]);
$soc->codefournisseur_modifiable = stripslashes($_POST["codefournisseur_modifiable"]);
$soc->capital = stripslashes($_POST["capital"]);
+ $soc->tva_intra_code = stripslashes($_POST["tva_intra_code"]);
+ $soc->tva_intra_num = stripslashes($_POST["tva_intra_num"]);
$soc->tva_intra = stripslashes($_POST["tva_intra_code"] . $_POST["tva_intra_num"]);
$soc->forme_juridique_code = stripslashes($_POST["forme_juridique_code"]);
$soc->effectif_id = stripslashes($_POST["effectif_id"]);
@@ -158,7 +160,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
if ($_GET["type"]=='f') { $soc->fournisseur=1; }
if ($_GET["type"]=='c') { $soc->client=1; }
if ($_GET["type"]=='p') { $soc->client=2; }
- if ($_POST["nom"]) { $soc->nom=$_POST["nom"]; }
+ if ($_POST["nom"]) { $soc->nom=$_POST["nom"]; }
print_titre($langs->trans("NewCompany"));
print "
\n";
@@ -170,7 +172,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
print '';
}
- $js_OpenPopupWindow = "function PopupPostalCode (postalcode,objectville)
+ $js_OpenPopupWindow = "function PopupPostalCode(postalcode,objectville)
{
var url = 'searchpostalcode.php?cp=' + postalcode + '&targetobject=window.opener.document.formsoc.' + objectville.name;
// alert(url);
@@ -250,8 +252,8 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
$form->select_departement($soc->departement_id,(defined("COMPANY_CREATE_TWO_STEPS")?$soc->pays_code:0));
print '';
- print '