diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index f843e20558c..b9cbbc020b4 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -5,7 +5,7 @@ * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2008 Patrick Raguin - * Copyright (C) 2010-2011 Juanjo Menent + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ * \file htdocs/societe/soc.php * \ingroup societe * \brief Third party card page - * \version $Id: soc.php,v 1.122 2011/07/18 16:37:14 simnandez Exp $ + * \version $Id: soc.php,v 1.121 2011/07/04 08:00:53 eldy Exp $ */ require("../main.inc.php"); @@ -699,14 +699,12 @@ else jQuery(".individualline").hide(); jQuery("#typent_id").val(0); jQuery("#effectif_id").val(0); - document.getElementById("TypeName").innerHTML=document.formsoc.ThirdPartyName.value; document.formsoc.private.value=0; }); jQuery("#radioprivate").click(function() { jQuery(".individualline").show(); jQuery("#typent_id").val(id_te_private); jQuery("#effectif_id").val(id_ef15); - document.getElementById("TypeName").innerHTML=document.formsoc.LastName.value; document.formsoc.private.value=1; }); jQuery("#selectpays_id").change(function() { @@ -737,16 +735,14 @@ else print ''; print ''; print ''; - print ''; - print ''; if ($modCodeClient->code_auto || $modCodeFournisseur->code_auto) print ''; print ''; // Name, firstname - if ($object->particulier || GETPOST("private")) + if ($object->particulier) { - print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; + print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field { print ''; @@ -755,7 +751,7 @@ else } else { - print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; + print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field { print ''; @@ -1965,5 +1961,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/18 16:37:14 $ - $Revision: 1.122 $'); +llxFooter('$Date: 2011/07/04 08:00:53 $ - $Revision: 1.121 $'); ?> \ No newline at end of file
'.$langs->trans('LastName').'
'.$langs->trans('LastName').''.$langs->trans('Prefix').'
'.$langs->trans('ThirdPartyName').'
'.$langs->trans('ThirdPartyName').''.$langs->trans('Prefix').'