NEW : Add list of billed
Very usefull when we have many rappro Maybe do the same on other paiement
This commit is contained in:
parent
0944463805
commit
a1ce4000e1
@ -971,6 +971,17 @@ class Paiement extends CommonObject
|
|||||||
|
|
||||||
$result='';
|
$result='';
|
||||||
$label = $langs->trans("ShowPayment").': '.$this->ref;
|
$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">';
|
$link = '<a href="'.DOL_URL_ROOT.'/compta/paiement/card.php?id='.$this->id.'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user