I have an error when importing contracts:
NOTICE: [8] Undefined property: AOS_Contracts::$currency_id on line 40 in file /var/www/suitecrm/modules/AOS_Products_Quotes/AOS_Utils.php
It only imports the first 100.
This is the contents of AOS_Utils.php:
$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_number($fieldName));
}
}
}
}