From f038ba869bd7a71d7538392a289754526ed15d61 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 26 Aug 2010 13:17:42 +0000 Subject: [PATCH] Trad --- htdocs/fichinter/index.php | 7 ++++++- htdocs/fourn/commande/fiche.php | 1 + htdocs/fourn/facture/fiche.php | 1 + htdocs/langs/en_US/errors.lang | 2 +- htdocs/langs/fr_FR/errors.lang | 1 + htdocs/langs/fr_FR/suppliers.lang | 1 - htdocs/societe/class/societe.class.php | 4 ++-- 7 files changed, 12 insertions(+), 5 deletions(-) diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php index b2918779595..3517ad688a3 100644 --- a/htdocs/fichinter/index.php +++ b/htdocs/fichinter/index.php @@ -118,6 +118,7 @@ if ($result) print ''; print "\n"; + $companystatic=new Societe($db); $var=True; $total = 0; @@ -132,7 +133,11 @@ if ($result) $interventionstatic->ref=$objp->ref; print $interventionstatic->getNomUrl(1); print "\n"; - print ''.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($objp->nom,44)."\n"; + print ''; + $companystatic->nom=$objp->nom; + $companystatic->socid=$objp->socid; + $companystatic->client=$objp->client; + print $companystatic->getNomUrl(1,'',44); print ''.dol_htmlentitiesbr(dol_trunc($objp->description,20)).''; print ''.dol_htmlentitiesbr(dol_trunc($objp->descriptiondetail,20)).''; print ''.dol_print_date($db->jdate($objp->dp),'dayhour')."\n"; diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 53dff0b4938..187aac994ec 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -170,6 +170,7 @@ if ($_POST['action'] == 'addline' && $user->rights->fournisseur->commande->creer if ($idprod == -1) { // Quantity too low + $langs->load("errors"); $mesg='
'.$langs->trans("ErrorQtyTooLowForThisSupplier").'
'; } } diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 4ae1e36f086..62ed49d75c4 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -338,6 +338,7 @@ if ($_GET['action'] == 'addline') if ($idprod == -1) { // Quantity too low + $langs->load("errors"); $mesg='
'.$langs->trans("ErrorQtyTooLowForThisSupplier").'
'; } } diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang index bff653783f1..2617ad3311e 100644 --- a/htdocs/langs/en_US/errors.lang +++ b/htdocs/langs/en_US/errors.lang @@ -71,4 +71,4 @@ ErrorSpecialCharNotAllowedForField=Special characters are not allowed for field WarningNoDocumentModelActivated=No model, for document generation, has been activated. A model will be choosed by default until you check your module setup. ErrorDatabaseParameterWrong=Database setup parameter '%s' has a value not compatible to use Dolibarr (must have value '%s'). ErrorNumRefModel=A reference exists into database (%s) and is not compatible with this numbering rule. Remove record or renamed reference to activate this module. - +ErrorQtyTooLowForThisSupplier=Quantity too low for this supplier or no price defined on this product for this supplier diff --git a/htdocs/langs/fr_FR/errors.lang b/htdocs/langs/fr_FR/errors.lang index 80a5d585b84..caf5818bb03 100644 --- a/htdocs/langs/fr_FR/errors.lang +++ b/htdocs/langs/fr_FR/errors.lang @@ -72,3 +72,4 @@ ErrorSpecialCharNotAllowedForField=Les caractères spéciaux ne sont pas admis p WarningNoDocumentModelActivated=Aucun modèle, pour la génération de document, n'a été activé. Un modèle sera pris par défaut en attendant la correction de configuration du module. ErrorDatabaseParameterWrong=Le paramètre de configuration de la base de donnée '%s' a une valeur non compatible pour une utilisation de Dolibarr (doit avoir la valeur '%s'). ErrorNumRefModel=Une référence existe en base (%s) et est incompatible avec cette numérotation. Supprimez la ligne ou renommez la référence pour activer ce module. +ErrorQtyTooLowForThisSupplier=Quantité insuffisante pour ce fournisseur ou aucun tarif défini sur ce produit pour ce fournisseur diff --git a/htdocs/langs/fr_FR/suppliers.lang b/htdocs/langs/fr_FR/suppliers.lang index 111149ea4da..dcc6215780c 100644 --- a/htdocs/langs/fr_FR/suppliers.lang +++ b/htdocs/langs/fr_FR/suppliers.lang @@ -14,7 +14,6 @@ OrderDate=Date commande BuyingPrice=Prix d'achat AddSupplierPrice=Ajouter prix fournisseur ChangeSupplierPrice=Modifier prix fournisseur -ErrorQtyTooLowForThisSupplier=Quantité insuffisante pour ce fournisseur ou aucun tarif défini sur ce produit pour ce fournisseur ErrorSupplierCountryIsNotDefined=Le pays de ce fournisseur n'est pas défini. Corriger sur sa fiche. ProductHasAlreadyReferenceInThisSupplier=Ce produit a déjà une référence chez ce fournisseur ReferenceSupplierIsAlreadyAssociatedWithAProduct=Cette référence fournisseur est déjà associée à la référence : %s diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 12430835b49..d3a5c81ff30 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1293,7 +1293,7 @@ class Societe extends CommonObject /** * \brief Renvoie nom clicable (avec eventuellement le picto) * \param withpicto Inclut le picto dans le lien - * \param option Sur quoi pointe le lien + * \param option Sur quoi pointe le lien ('', 'customer', 'supplier', 'compta') * \param maxlen Longueur max libelle * \return string Chaine avec URL */ @@ -1327,12 +1327,12 @@ class Societe extends CommonObject $lien = ''; $lienfin=''; } - if (empty($lien)) { $lien = ''; $lienfin=''; } + if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$this->nom,'company').$lienfin.' '); $result.=$lien.($maxlen?dol_trunc($this->nom,$maxlen):$this->nom).$lienfin;