Change to $listofcurrenciesbefore for GBP + AUD

Update of functions.lib.php - function price()
$listofcurrenciesbefore to include USD, GBP, and AUD to support $ and £ appearing before amounts on invoices not after the amount
This commit is contained in:
fentman 2015-01-08 11:21:25 +11:00
parent f7dd4a1357
commit 742ec954cd

View File

@ -2948,7 +2948,7 @@ function price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerou
{
if ($currency_code == 'auto') $currency_code=$conf->currency;
$listofcurrenciesbefore=array('USD');
$listofcurrenciesbefore=array('USD','GBP','AUD');
if (in_array($currency_code,$listofcurrenciesbefore)) $cursymbolbefore.=$outlangs->getCurrencySymbol($currency_code);
else
{