NEW : Add list of billed

Very usefull when we have many rappro
Maybe do the same on other paiement
This commit is contained in:
BENKE Charlie 2016-05-14 10:14:10 +02:00
parent 0944463805
commit a1ce4000e1

View File

@ -971,6 +971,17 @@ class Paiement extends CommonObject
$result='';
$label = $langs->trans("ShowPayment").': '.$this->ref;
$arraybill = $this->getBillsArray();
if (count($arraybill) >0)
{
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
$facturestatic=new Facture($this->db);
foreach ($arraybill as $billid)
{
$facturestatic->fetch($billid);
$label .='<br> '.$facturestatic->getNomUrl(1).' '.$facturestatic->getLibStatut(2,1);
}
}
$link = '<a href="'.DOL_URL_ROOT.'/compta/paiement/card.php?id='.$this->id.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
$linkend='</a>';