Ver código fonte

FIX : Erreur dans le Total

Corrige l'erreur de calcul dans le total des produits et services
Pierre Ardoin 6 anos atrás
pai
commit
99892c13b0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      htdocs/product/index.php

+ 1 - 1
htdocs/product/index.php

@@ -184,7 +184,7 @@ else if ($type == '1')
 else
 {
 	print $statProducts.$statServices;
-	$total=round($prodser[1][0])+round($prodser[1][1])+round($prodser[1][2])+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])+round($prodser[1][0])+round($prodser[1][1])+round($prodser[1][2])+round($prodser[1][3]); //Calcul du Total des Produits et Services
 }
 print '<tr class="liste_total"><td>'.$langs->trans("Total").'</td><td align="right">';
 print $total;