diff --git a/htdocs/compta/bank/index.php b/htdocs/compta/bank/index.php
index cf43fc578fb77..e98d8978440a8 100644
--- a/htdocs/compta/bank/index.php
+++ b/htdocs/compta/bank/index.php
@@ -90,7 +90,7 @@
print '
'.$langs->trans("BankBalance").' | ';
print "\n";
-$total = 0; $found = 0;
+$total = array(); $found = 0;
$var=true;
foreach ($accounts as $key=>$type)
{
@@ -119,17 +119,19 @@
print '';
print ''.$acc->getLibStatut(2).' | ';
print '';
- print ''.price($solde).'';
+ print ''.price($solde, 0, $langs, 0, 0, -1, $acc->currency_code).'';
print ' | ';
print '';
- $total += $solde;
+ $total[$acc->currency_code] += $solde;
}
}
if (! $found) print ''.$langs->trans("None").' |
';
// Total
-print ''.$langs->trans("Total").' | '.price($total).' |
';
-
+foreach ($total as $key=>$solde)
+{
+ print ''.$langs->trans("Total ").$key.' | '.price($solde, 0, $langs, 0, 0, -1, $key).' |
';
+}
//print ' |
';
@@ -144,7 +146,7 @@
print ''.$langs->trans("BankBalance").' | ';
print "\n";
-$total = 0; $found = 0;
+$total = array(); $found = 0;
$var=true;
foreach ($accounts as $key=>$type)
{
@@ -165,16 +167,19 @@
print ' | ';
print ''.$acc->getLibStatut(2).' | ';
print '';
- print ''.price($solde).'';
+ print ''.price($solde, 0, $langs, 0, 0, -1, $acc->currency_code).'';
print ' | ';
print '';
- $total += $solde;
+ $total[$acc->currency_code] += $solde;
}
}
if (! $found) print ''.$langs->trans("None").' |
';
// Total
-print ''.$langs->trans("Total").' | '.price($total).' |
';
+foreach ($total as $key=>$solde)
+{
+ print ''.$langs->trans("Total ").$key.' | '.price($solde, 0, $langs, 0, 0, -1, $key).' |
';
+}
@@ -193,7 +198,7 @@
print ''.$langs->trans("BankBalance").' | ';
print "\n";
-$total = 0; $found = 0;
+$total = array(); $found = 0;
$var=true;
foreach ($accounts as $key=>$type)
{
@@ -222,16 +227,19 @@
print '';
print ''.$acc->getLibStatut(2).' | ';
print '';
- print ''.price($solde).'';
+ print ''.price($solde, 0, $langs, 0, 0, -1, $acc->currency_code).'';
print ' | ';
print '';
- $total += $solde;
+ $total[$acc->currency_code] += $solde;
}
}
if (! $found) print ''.$langs->trans("None").' |
';
// Total
-print ''.$langs->trans("Total").' | '.price($total).' |
';
+foreach ($total as $key=>$solde)
+{
+ print ''.$langs->trans("Total ").$key.' | '.price($solde, 0, $langs, 0, 0, -1, $key).' |
';
+}
print "";