AOS_Utils

Hy guys,i have a small situation with a code line in AOS_Utils,when i import Quotes files in Quotes gives me an error saying like this:
" NOTICE: [8] Undefined property: AOS_Quotes::$currency_id on line 40 in file /var/www/html/modules/AOS Products Quotes/AOS Utils.php"
the code inside looks like this :

$fieldName = $field[‘name’];
$fieldNameDollar = $field[‘name’].’_usdollar’;

    if(isset($focus->field_defs[$fieldNameDollar])){

        $focus->$fieldNameDollar = '';

$fieldName = $field[‘name’];
$fieldNameDollar = $field[‘name’].’_usdollar’;

    if(isset($focus->field_defs[$fieldNameDollar])){

        $focus->$fieldNameDollar = '';
        if(!number_empty($focus->field_defs[$field['name']])){
            $currency = new Currency();
            $currency->retrieve($focus->currency_id);
            $focus->$fieldNameDollar = $currency->convertToDollar(unformat_$
        }
        if(!number_empty($focus->field_defs[$field['name']])){

Do i have to do some changes or not?

Hi,
it’s only a notice of PHP, is not an error, don’t warry about it.

Try to set default currency in the suitecrm administration…

If you change the code in that file adding some controls to prevent the notice, remember: is “upgrade unsafe”

1 Like

Hi, I got the same issue on my system. Have you got your issue resolved?

If you got is resolved, can you please share it with me?

Thanks

Chris