diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 4d49fc3792a..e20b76b1349 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -1316,7 +1316,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
{
foreach ($balance->available as $cpt)
{
- print '
| '.$langs->trans("Available").' | '.price($cpt->amount, 0, '', 1, - 1, - 1, strtoupper($cpt->currency)).' | '.$langs->trans("Currency".strtoupper($cpt->currency)).' |
';
+ $arrayzerounitcurrency=array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
+ if (! in_array($cpt->currency, $arrayzerounitcurrency)) $amount = $cpt->amount / 100;
+ else $amount = $cpt->amount;
+ print '| '.$langs->trans("Available").' | '.price(amount, 0, '', 1, - 1, - 1, strtoupper($cpt->currency)).' | '.$langs->trans("Currency".strtoupper($cpt->currency)).' |
';
}
}
@@ -1324,7 +1327,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
{
foreach ($balance->pending as $cpt)
{
- print '| '.$langs->trans("Pending").' | '.price($cpt->amount, 0, '', 1, - 1, - 1, strtoupper($cpt->currency)).' | '.$langs->trans("Currency".strtoupper($cpt->currency)).' |
';
+ $arrayzerounitcurrency=array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
+ if (! in_array($cpt->currency, $arrayzerounitcurrency)) $amount = $cpt->amount / 100;
+ else $amount = $cpt->amount;
+ print '| '.$langs->trans("Pending").' | '.price($amount, 0, '', 1, - 1, - 1, strtoupper($cpt->currency)).' | '.$langs->trans("Currency".strtoupper($cpt->currency)).' |
';
}
}
print '';