From 71f00ce66980a40dbb1df7de4ba4801ebf1d8ac2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Dec 2010 11:29:42 +0000 Subject: [PATCH] New: Add net and without tax price of project referrer page. --- htdocs/projet/element.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index a80c348ef4d..8c70127a352 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -21,7 +21,7 @@ /** * \file htdocs/projet/element.php * \ingroup projet facture - * \brief Page des elements par projet + * \brief Page of project referrers * \version $Id$ */ @@ -183,7 +183,8 @@ foreach ($listofreferent as $key => $value) print ''.$langs->trans("Ref").''; print ''.$langs->trans("Date").''; print ''.$langs->trans("ThirdParty").''; - if (empty($value['disableamount'])) print ''.$langs->trans("AmountHT").''; + if (empty($value['disableamount'])) print ''.$langs->trans("AmountHT").''; + if (empty($value['disableamount'])) print ''.$langs->trans("AmountTTC").''; print ''.$langs->trans("Status").''; print ''; $elementarray = $project->get_element_list($key); @@ -220,16 +221,21 @@ foreach ($listofreferent as $key => $value) // Amount if (empty($value['disableamount'])) print ''.(isset($element->total_ht)?price($element->total_ht):' ').''; + // Amount + if (empty($value['disableamount'])) print ''.(isset($element->total_ttc)?price($element->total_ttc):' ').''; + // Status print ''.$element->getLibStatut(5).''; print ''; - $total = $total + $element->total_ht; + $total_ht = $total_ht + $element->total_ht; + $total_ttc = $total_ttc + $element->total_ttc; } print ''.$langs->trans("Number").': '.$i.''; - if (empty($value['disableamount'])) print ''.$langs->trans("TotalHT").' : '.price($total).''; + if (empty($value['disableamount'])) print ''.$langs->trans("TotalHT").' : '.price($total_ht).''; + if (empty($value['disableamount'])) print ''.$langs->trans("TotalTTC").' : '.price($total_ttc).''; print ' '; print ''; }