From a1ce4000e1e63915ac14e2c6c99108fae4c3afee Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Sat, 14 May 2016 10:14:10 +0200 Subject: [PATCH] NEW : Add list of billed Very usefull when we have many rappro Maybe do the same on other paiement --- htdocs/compta/paiement/class/paiement.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index 9e81180c4fe..62f8c1b6717 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -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 .='
'.$facturestatic->getNomUrl(1).' '.$facturestatic->getLibStatut(2,1); + } + } $link = ''; $linkend='';