diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php
index 07213fe0ce0..86dcbdeff39 100644
--- a/htdocs/compta/paiement/class/paiement.class.php
+++ b/htdocs/compta/paiement/class/paiement.class.php
@@ -1212,6 +1212,9 @@ class Paiement extends CommonObject
$label .= dol_print_date($dateofpayment, 'dayhour', 'tzuser');
}
}
+ if ($this->amount) {
+ $label .= '
'.$langs->trans("Amount").': '.price($this->amount, 0, $langs, 1, -1, -1, $conf->currency);
+ }
if ($mode == 'withlistofinvoices') {
$arraybill = $this->getBillsArray();
if (is_array($arraybill) && count($arraybill) > 0) {
diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php
index 75984c94f99..b85b373f81f 100644
--- a/htdocs/fourn/class/paiementfourn.class.php
+++ b/htdocs/fourn/class/paiementfourn.class.php
@@ -596,6 +596,10 @@ class PaiementFourn extends Paiement
{
global $langs, $conf, $hookmanager;
+ if (!empty($conf->dol_no_mouse_hover)) {
+ $notooltip = 1; // Force disable tooltips
+ }
+
$result = '';
$text = $this->ref; // Sometimes ref contains label
@@ -610,8 +614,12 @@ class PaiementFourn extends Paiement
$label = img_picto('', $this->picto).' '.$langs->trans("Payment").'
';
$label .= ''.$langs->trans("Ref").': '.$text;
- if ($this->datepaye ? $this->datepaye : $this->date) {
- $label .= '
'.$langs->trans("Date").': '.dol_print_date($this->datepaye ? $this->datepaye : $this->date, 'dayhour', 'tzuser');
+ $dateofpayment = ($this->datepaye ? $this->datepaye : $this->date);
+ if ($dateofpayment) {
+ $label .= '
'.$langs->trans("Date").': '.dol_print_date($dateofpayment, 'dayhour', 'tzuser');
+ }
+ if ($this->amount) {
+ $label .= '
'.$langs->trans("Amount").': '.price($this->amount, 0, $langs, 1, -1, -1, $conf->currency);
}
$linkclose = '';