forked from Wavyzz/dolibarr
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:
committed by
Laurent Destailleur
parent
27698e7f0f
commit
9049931ff0
@@ -2900,7 +2900,7 @@ function price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerou
|
|||||||
{
|
{
|
||||||
if ($currency_code == 'auto') $currency_code=$conf->currency;
|
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);
|
if (in_array($currency_code,$listofcurrenciesbefore)) $cursymbolbefore.=$outlangs->getCurrencySymbol($currency_code);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user