diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 198ef600843..cccbd837b79 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -343,6 +343,13 @@ if ($_socid > 0)
$facturestatic->type=$obj->type;
print $langs->trans("CreditNote").' '.$facturestatic->getNomURl(1);
}
+ elseif ($obj->description == '(DEPOSIT)')
+ {
+ $facturestatic->id=$obj->fk_facture_source;
+ $facturestatic->ref=$obj->ref;
+ $facturestatic->type=$obj->type;
+ print $langs->trans("InvoiceDeposit").' '.$facturestatic->getNomURl(1);
+ }
else
{
print $obj->description;
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 4026bf06ff5..885b8d705bc 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2140,7 +2140,7 @@ else
print '';
}
- // Tiers Société
+ // Third party
print '
| '.$langs->trans('Company').' | ';
print ''.$soc->getNomUrl(1,'compta').' | ';
print '
';
@@ -2207,7 +2207,8 @@ else
// If validated, we show link "add credit note to payment"
if ($fac->statut != 1 || $fac->type == 2 || $fac->type == 3)
{
- print $langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie)).'. ';
+ $text=$langs->trans("CompanyHasCreditNote",price($absolute_creditnote),$langs->transnoentities("Currency".$conf->monnaie));
+ print $html->textwithhelp($text,$langs->trans("CreditNoteDepositUse"));
}
else
{
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index a833747d61e..cf59a24312d 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -145,12 +145,12 @@ class Form
}
/**
- \brief Affiche un texte avec picto help qui affiche un tooltip
- \param text Texte à afficher
- \param htmltooltip Contenu html du tooltip
- \param direction 1=Le picto est après, -1=le picto est avant
- \param usehelpcursor 1=Utilise curseur help, 0=Curseur par defaut
- \return string Code html du texte,picto
+ * \brief Affiche un texte avec picto help qui affiche un tooltip
+ * \param text Texte à afficher
+ * \param htmltooltip Contenu html du tooltip
+ * \param direction 1=Le picto est après, -1=le picto est avant
+ * \param usehelpcursor 1=Utilise curseur help, 0=Curseur par defaut
+ * \return string Code html du texte,picto
*/
function textwithhelp($text,$htmltext,$direction=1,$usehelpcursor=1)
{
@@ -161,19 +161,21 @@ class Form
}
/**
- \brief Affiche un texte avec picto warning qui affiche un tooltip
- \param text Texte à afficher
- \param htmltooltip Contenu html du tooltip
- \param direction 1=Le picto est après, -1=le picto est avant
- \return string Code html du texte,picto
+ * \brief Affiche un texte avec picto warning qui affiche un tooltip
+ * \param text Texte à afficher
+ * \param htmltooltip Contenu html du tooltip
+ * \param direction 1=Le picto est après, -1=le picto est avant
+ * \return string Code html du texte,picto
*/
function textwithwarning($text,$htmltext,$direction=1)
{
- return $this->textwithtooltip($text,$htmltext,2,$direction,img_warning(""));
+ global $conf;
+ $alt='';
+ if (empty($conf->use_javascript_ajax)) $alt='Help disabled (javascript disabled)';
+ return $this->textwithtooltip($text,$htmltext,2,$direction,img_warning($alt));
}
-
/**
* \brief Retourne la liste déroulante des pays actifs, dans la langue de l'utilisateur
* \param selected Id ou Code pays ou Libelle pays pré-sélectionné