diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index e7e0eade937..47bcb65b862 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -78,7 +78,7 @@ if ($_POST['action'] == 'add_paiement' || $_POST['action'] == 'confirm_paiement' { $addwarning=1; $formquestion['text'] = img_warning($langs->trans("PaymentHigherThanReminderToPay")).' Attention, le montant de paiement pour une ou plusieurs facture est supérieur au reste à payer.'; - $formquestion['text'].='
Corriger votre saisie, sinon confirmer. Dolibarr pourra créer un avoir du trop perçu lors de la fermeture de chacune de facture.'; + $formquestion['text'].='
Corriger votre saisie, sinon, confirmer et penser à créer un avoir du trop perçu lors de la fermeture de chacune des factures surpayés.'; } $formquestion[$i++]=array('type' => 'hidden','name' => $key, 'value' => $_POST[$key]); diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 9c5e237c0e0..6be735d76fd 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -349,7 +349,7 @@ class Facture extends CommonObject /** * \brief Renvoie nom clicable (avec eventuellement le picto) - * \param withpicto Inclut le picto dans le lien + * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul * \param option Sur quoi pointe le lien * \return string Chaine avec URL */ @@ -370,7 +370,8 @@ class Facture extends CommonObject if ($this->type == 1) $label=$langs->trans("ShowInvoiceReplace"); if ($this->type == 2) $label=$langs->trans("ShowInvoiceAvoir"); - if ($withpicto) $result.=($lien.img_object($label,$picto).$lienfin.' '); + if ($withpicto) $result.=($lien.img_object($label,$picto).$lienfin); + if ($withpicto && $withpicto != 2) $result.=' '; $result.=$lien.$this->ref.$lienfin; return $result; }