Fix: Error with some amounts
This commit is contained in:
parent
7400f12c9b
commit
9648dd2d1a
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -18,11 +18,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/dons/index.php
|
* \file htdocs/compta/dons/index.php
|
||||||
\ingroup don
|
* \ingroup don
|
||||||
\brief Page accueil espace don
|
* \brief Page accueil espace don
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/compta/dons/class/don.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/compta/dons/class/don.class.php");
|
||||||
@ -86,8 +86,8 @@ for ($i = 0 ; $i < 3 ; $i++)
|
|||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td><a href="liste.php?statut='.$i.'">'.$donstatic->LibStatut($i,4).'</a></td>';
|
print '<td><a href="liste.php?statut='.$i.'">'.$donstatic->LibStatut($i,4).'</a></td>';
|
||||||
print '<td align="right">'.$nb[$i].'</td>';
|
print '<td align="right">'.$nb[$i].'</td>';
|
||||||
print '<td align="right">'.($nb[$i]?price($somme[$i]):' ').'</td>';
|
print '<td align="right">'.($nb[$i]?price($somme[$i],'MT'):' ').'</td>';
|
||||||
print '<td align="right">'.($nb[$i]?(price($somme[$i])/$nb[$i]):' ').'</td>';
|
print '<td align="right">'.($nb[$i]?price($somme[$i]/$nb[$i],'MT'):' ').'</td>';
|
||||||
$totalnb += $nb[$i];
|
$totalnb += $nb[$i];
|
||||||
$total += $somme[$i];
|
$total += $somme[$i];
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
@ -96,8 +96,8 @@ for ($i = 0 ; $i < 3 ; $i++)
|
|||||||
print '<tr class="liste_total">';
|
print '<tr class="liste_total">';
|
||||||
print '<td>'.$langs->trans("Total").'</td>';
|
print '<td>'.$langs->trans("Total").'</td>';
|
||||||
print '<td align="right">'.$totalnb.'</td>';
|
print '<td align="right">'.$totalnb.'</td>';
|
||||||
print '<td align="right">'.price($total).'</td>';
|
print '<td align="right">'.price($total,'MT').'</td>';
|
||||||
print '<td align="right">'.($totalnb?(price($total)/$totalnb):' ').'</td>';
|
print '<td align="right">'.($totalnb?price($total/$totalnb,'MT'):' ').'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user