#Fix : Error in Total Products/Services
Its correct an error in the total of stat Products/Services total.
This commit is contained in:
parent
14dea53700
commit
2d6f5ca8ab
@ -4,6 +4,7 @@
|
|||||||
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2014-2016 Charlie BENKE <charlie@patas-monkey.com>
|
* Copyright (C) 2014-2016 Charlie BENKE <charlie@patas-monkey.com>
|
||||||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
|
* Copyright (C) 2019 Pierre Ardoin <mapiolca@me.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -174,12 +175,12 @@ $total=0;
|
|||||||
if ($type == '0')
|
if ($type == '0')
|
||||||
{
|
{
|
||||||
print $statProducts;
|
print $statProducts;
|
||||||
$total=round($prodser[0][0])+round($prodser[0][1])+round($prodser[0][2]);
|
$total=round($prodser[0][0])+round($prodser[0][1])+round($prodser[0][2])+round($prodser[0][3]);
|
||||||
}
|
}
|
||||||
else if ($type == '1')
|
else if ($type == '1')
|
||||||
{
|
{
|
||||||
print $statServices;
|
print $statServices;
|
||||||
$total=round($prodser[1][0])+round($prodser[1][1])+round($prodser[1][2]);
|
$total=round($prodser[1][0])+round($prodser[1][1])+round($prodser[1][2])+round($prodser[1][3]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user