From ed8bdb4b0967622dc09c29f019d5e4224b12ee6a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 27 Nov 2007 17:58:27 +0000 Subject: [PATCH] Fix: modif esthetique mineure --- htdocs/comm/adresse_livraison.php | 27 ++++++++++++++++++++------- htdocs/langs/en_US/companies.lang | 1 + htdocs/langs/fr_FR/companies.lang | 1 + 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/adresse_livraison.php b/htdocs/comm/adresse_livraison.php index 45c7a8ad90e..811e903a41f 100644 --- a/htdocs/comm/adresse_livraison.php +++ b/htdocs/comm/adresse_livraison.php @@ -1,7 +1,7 @@ * Copyright (C) 2004-2006 Laurent Destailleur - * Copyright (C) 2005-2006 Regis Houssin + * Copyright (C) 2005-2007 Regis Houssin * * 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 @@ -157,13 +157,19 @@ $countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("Se if ($_GET["action"] == 'create' || $_POST["action"] == 'create') { - if ($user->rights->societe->creer) - { - /* - * Fiche adresse de livraison en mode création - */ + if ($user->rights->societe->creer) + { + /* + * Fiche adresse de livraison en mode création + */ $livraison = new AdresseLivraison($db); + + $societe=new Societe($db); + $societe->fetch($_GET["socid"]); + $head = societe_prepare_head($societe); + + dolibarr_fiche_head($head, 'customer', $societe->nom); if ($_POST["label"] && $_POST["nom"]) { @@ -248,8 +254,15 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') * Fiche societe en mode edition */ $livraison = new AdresseLivraison($db); + + $societe=new Societe($db); + $societe->fetch($_GET["socid"]); + $head = societe_prepare_head($societe); + + dolibarr_fiche_head($head, 'customer', $societe->nom); - print_titre($langs->trans("EditDeliveyAdress")); + print_titre($langs->trans("EditDeliveryAddress")); + print "
\n"; if ($socid) { diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang index b733692fa72..e6a74b992e7 100644 --- a/htdocs/langs/en_US/companies.lang +++ b/htdocs/langs/en_US/companies.lang @@ -172,6 +172,7 @@ Phones=Phones Capital=Capital CapitalOf=Capital of %s EditCompany=Edit company +EditDeliveryAddress=Edit delivery address ThisUserIsNot=This user is not a prospect, customer nor supplier VATIntraCheck=Check VATIntraCheckDesc=The link %s allows to ask the european VAT checker service. An external internet access from server is required for this service to work. diff --git a/htdocs/langs/fr_FR/companies.lang b/htdocs/langs/fr_FR/companies.lang index 225a1273f57..6b7728de353 100644 --- a/htdocs/langs/fr_FR/companies.lang +++ b/htdocs/langs/fr_FR/companies.lang @@ -172,6 +172,7 @@ Phones=T Capital=Capital CapitalOf=Capital de %s EditCompany=Modification société +EditDeliveryAddress=Modification de l'adresse de livraison ThisUserIsNot=Cet utilisateur n'est ni un prospect, ni un client, ni un fournisseur VATIntraCheck=Vérifier VATIntraCheckDesc=Le lien %s permet d'interroger le service européen de contrôle des numéro de TVA intracommunautaire. Un accès au monde internet exterieur depuis le serveur est requis pour que ce service fonctionne.