From bbbb8b983dad547407e2996fc75ba51ea58061b0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Sep 2008 23:28:23 +0000 Subject: [PATCH] Add total in statistics --- htdocs/product/index.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/product/index.php b/htdocs/product/index.php index f284078e14e..3097d91c50f 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -19,11 +19,11 @@ */ /** - \file htdocs/product/index.php - \ingroup product - \brief Page accueil des produits et services - \version $Id$ -*/ + * \file htdocs/product/index.php + * \ingroup product + * \brief Page accueil des produits et services + * \version $Id$ + */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT.'/product.class.php'); @@ -114,7 +114,9 @@ else { print $statProducts.$statServices; } - +print ''.$langs->trans("Total").''; +print round($prodser[1][0])+round($prodser[1][1])+round($prodser[0][0])+round($prodser[0][1]); +print ''; print ''; print '';