Update functions.lib.php

Agrega el tipo de moneda CRC (colones Costa Rica) para que se muestre al incio como simbolo de moneda.
Adds the CRC currency (Costa Rican colones) so that it is displayed at the beginning as a currency symbol.
This commit is contained in:
Randall Mora 2022-12-23 13:18:04 -06:00 committed by GitHub
parent da37ad43bf
commit 92d9d31b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5762,7 +5762,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);