diff --git a/htdocs/soc.php b/htdocs/soc.php index 85d0fcfa516..90081d97ea4 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -60,6 +60,7 @@ if ($_POST["action"] == 'add' or $_POST["action"] == 'update') $soc->siret = $_POST["siret"]; $soc->ape = $_POST["ape"]; $soc->prefix_comm = $_POST["prefix_comm"]; + $soc->code_client = $_POST["code_client"]; $soc->capital = $_POST["capital"]; $soc->tva_intra = $_POST["tva_intra_code"] . $_POST["tva_intra_num"]; $soc->forme_juridique_code = $_POST["forme_juridique_code"]; @@ -78,6 +79,10 @@ if ($_POST["action"] == 'add' or $_POST["action"] == 'update') $mesg = "Erreur, le prefix '".$soc->prefix_comm."' existe déjà vous devez en choisir un autre"; $_GET["action"]= "edit"; } + else + { + Header("Location: soc.php?socid=".$_GET["socid"]); + } } if ($_POST["action"] == 'add') @@ -139,6 +144,7 @@ if ($_GET["action"] == 'create') print ''.$langs->trans('Phone').''; print ''.$langs->trans('Fax').''; + print ''.$langs->trans('Code client').''; print ''.$langs->trans('Web').''; print ''.$langs->trans('ProfIdSiren').''; @@ -218,6 +224,9 @@ elseif ($_GET["action"] == 'edit') print ''.$langs->trans('Phone').''; print ''.$langs->trans('Fax').''; + + print ''.$langs->trans('Code client').''; + print ''.$langs->trans('Web').''; print ''.$langs->trans('ProfIdSiren').''; @@ -322,6 +331,12 @@ else print ''.$langs->trans('Phone').''.dolibarr_print_phone($soc->tel).''; print ''.$langs->trans('Fax').''.dolibarr_print_phone($soc->fax).''; + + print ''; + print $langs->trans('Code client').''; + print $soc->code_client; + print ''; + print ''.$langs->trans('Web').''; if ($soc->url) { print 'http://'.$soc->url.''; } print '';