From 240b7db3ce58c9dcc79ea2bf2243db3f87489c3a Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Mon, 18 Jul 2011 16:37:14 +0000 Subject: [PATCH] Fix: Show LastName or ThirdPartyName label correctly (very important for the Hispanic community) --- htdocs/societe/soc.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index b9cbbc020b4..f843e20558c 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 Juanjo Menent + * Copyright (C) 2010-2011 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.121 2011/07/04 08:00:53 eldy Exp $ + * \version $Id: soc.php,v 1.122 2011/07/18 16:37:14 simnandez Exp $ */ require("../main.inc.php"); @@ -699,12 +699,14 @@ 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() { @@ -735,14 +737,16 @@ else print ''; print ''; print ''; + print ''; + print ''; if ($modCodeClient->code_auto || $modCodeFournisseur->code_auto) print ''; print ''; // Name, firstname - if ($object->particulier) + if ($object->particulier || GETPOST("private")) { - print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; + print 'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field { print ''; @@ -751,7 +755,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 ''; @@ -1961,5 +1965,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/04 08:00:53 $ - $Revision: 1.121 $'); +llxFooter('$Date: 2011/07/18 16:37:14 $ - $Revision: 1.122 $'); ?> \ No newline at end of file
'.$langs->trans('LastName').'
'.$langs->trans('LastName').''.$langs->trans('Prefix').'
'.$langs->trans('ThirdPartyName').'
'.$langs->trans('ThirdPartyName').''.$langs->trans('Prefix').'