Show amount on tooltip for direct debit ref

This commit is contained in:
Laurent Destailleur 2023-03-06 19:03:53 +01:00
parent 84d0e33f62
commit d4f3d90e0a
2 changed files with 5 additions and 0 deletions

View File

@ -896,6 +896,7 @@ if ($object->id > 0) {
$withdrawreceipt->date_creation = $db->jdate($obj->datec);
$withdrawreceipt->statut = $obj->status;
$withdrawreceipt->status = $obj->status;
$withdrawreceipt->amount = $obj->amount;
//$withdrawreceipt->credite = $db->jdate($obj->credite);
print $withdrawreceipt->getNomUrl(1);
@ -1003,6 +1004,7 @@ if ($object->id > 0) {
$withdrawreceipt->statut = $obj->status;
$withdrawreceipt->status = $obj->status;
$withdrawreceipt->fk_bank_account = $obj->fk_bank_account;
$withdrawreceipt->amount = $obj->amount;
//$withdrawreceipt->credite = $db->jdate($obj->credite);
print $withdrawreceipt->getNomUrl(1);

View File

@ -1317,6 +1317,9 @@ class BonPrelevement extends CommonObject
$label = img_picto('', $this->picto).' <u>'.$langs->trans($labeltoshow).'</u> '.$this->getLibStatut(5);
$label .= '<br>';
$label .= '<b>'.$langs->trans('Ref').':</b> '.$this->ref;
if (isset($this->amount)) {
$label .= '<br><b>'.$langs->trans("Amount").":</b> ".price($this->amount);
}
if (isset($this->date_trans)) {
$label .= '<br><b>'.$langs->trans("TransData").":</b> ".dol_print_date($this->date_trans, 'dayhour', 'tzuserrel');
}