From 236f288a0839784430ea088012ea4875eb5f8ffe Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 26 Jul 2005 10:07:32 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20bug=2013898=20-=20merci=20=E0=20Ch?= =?UTF-8?q?ristophe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 ''.$langs->trans('Phone').''; - print ''.$langs->trans('Fax').''; + print ''.$langs->trans('Phone').''; + print ''.$langs->trans('Fax').''; print ''.$langs->trans('Web').''; @@ -383,7 +385,6 @@ elseif ($_GET["action"] == 'edit') print ''.$langs->transcountry('ProfId1',$soc->pays_code).''; print ''.$langs->transcountry('ProfId2',$soc->pays_code).''; - print ''.$langs->transcountry('ProfId3',$soc->pays_code).' '; print ''.$langs->trans('TVAIntra').'';