Merge pull request #23325 from randallmoraes/patch-6

NEW Add CRC for currency symbol before amount
This commit is contained in:
Laurent Destailleur 2023-01-04 08:35:39 +01:00 committed by GitHub
commit 23865e5a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5745,7 +5745,7 @@ function price($amount, $form = 0, $outlangs = '', $trunc = 1, $rounding = -1, $
$currency_code = $conf->currency;
}
$listofcurrenciesbefore = array('AUD', 'CAD', 'CNY', 'COP', 'CLP', 'GBP', 'HKD', 'MXN', 'PEN', 'USD');
$listofcurrenciesbefore = array('AUD', 'CAD', 'CNY', 'COP', 'CLP', 'GBP', 'HKD', 'MXN', 'PEN', 'USD', 'CRC);
$listoflanguagesbefore = array('nl_NL');
if (in_array($currency_code, $listofcurrenciesbefore) || in_array($outlangs->defaultlang, $listoflanguagesbefore)) {
$cursymbolbefore .= $outlangs->getCurrencySymbol($currency_code);