Fixing style errors.
This commit is contained in:
parent
88d2658625
commit
366dfc0e5c
@ -1318,10 +1318,10 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
$arrayzerounitcurrency=array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
|
||||
if (! in_array($cpt->currency, $arrayzerounitcurrency)) {
|
||||
$currencybalance[$cpt->currency]['available'] = $cpt->amount / 100;
|
||||
} else {
|
||||
$currencybalance[$cpt->currency]['available'] = $cpt->amount;
|
||||
}
|
||||
$currencybalance[$cpt->currency]['currency'] = $cpt->currency;
|
||||
} else {
|
||||
$currencybalance[$cpt->currency]['available'] = $cpt->amount;
|
||||
}
|
||||
$currencybalance[$cpt->currency]['currency'] = $cpt->currency;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1329,8 +1329,8 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
{
|
||||
foreach ($balance->pending as $cpt)
|
||||
{
|
||||
$arrayzerounitcurrency=array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
|
||||
if (! in_array($cpt->currency, $arrayzerounitcurrency)) {
|
||||
$arrayzerounitcurrency=array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
|
||||
if (! in_array($cpt->currency, $arrayzerounitcurrency)) {
|
||||
$currencybalance[$cpt->currency]['pending'] = $currencybalance[$cpt->currency]['available']+$cpt->amount / 100;
|
||||
} else {
|
||||
$currencybalance[$cpt->currency]['pending'] = $currencybalance[$cpt->currency]['available']+$cpt->amount;
|
||||
@ -1342,7 +1342,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
|
||||
{
|
||||
foreach ($currencybalance as $cpt)
|
||||
{
|
||||
print '<tr><td>'.$langs->trans("Currency".strtoupper($cpt['currency'])).'</td><td>'.price($cpt['available'], 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td><td>'.price($cpt->pending, 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td><td>'.price($cpt['available']+$cpt->pending, 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Currency".strtoupper($cpt['currency'])).'</td><td>'.price($cpt['available'], 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td><td>'.price($cpt->pending, 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td><td>'.price($cpt['available']+$cpt->pending, 0, '', 1, - 1, - 1, strtoupper($cpt['currency'])).'</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user