diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 5224d5e7f09..0d73fba7281 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -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); diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index cbe2eda9533..c130c94ab09 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -1317,6 +1317,9 @@ class BonPrelevement extends CommonObject $label = img_picto('', $this->picto).' '.$langs->trans($labeltoshow).' '.$this->getLibStatut(5); $label .= '
'; $label .= ''.$langs->trans('Ref').': '.$this->ref; + if (isset($this->amount)) { + $label .= '
'.$langs->trans("Amount").": ".price($this->amount); + } if (isset($this->date_trans)) { $label .= '
'.$langs->trans("TransData").": ".dol_print_date($this->date_trans, 'dayhour', 'tzuserrel'); }