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 '
';
}