Hi All,
On Quotes when adding QLI, we need to add a custom field total_units_c that will be fetched from ProductCataloge and can be editable by user.
Please note that, total_units_c is in Products (QLI) and same name in ProductCataloge as well.
I am able to add the custom field but its value is not fetched from Productcatalog.
I followed the article http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Quotes/
But it did not help for custom fields.
Can anybody know where we need to add the custom field that it will fetch from ProductCatalog.
Any help is really appreciated.
Regards,
Usman
To populate the value from the catalog, add the field to the populate_list in your vardef extensions:
custom/Extension/modules/Products/Ext/Vardefs/your_extension_file.php (path corrected per Usman Saeed, Thank you for catching that!)
$dictionary['Product']['fields']['product_template_name']['populate_list']['total_units_c'] = 'total_units_c';
HTH,
FrancescaS