I want to add another dropdown field called ‘Delivery’ in Line Items.
I have already created the dropdown with its option, field and label through studio.
The changes that i have made in line_items.js are as follows :
function insertProductHeader(tableid){
…
var d=x.insertCell(4);
d.style.color=“rgb(68,68,68)”;
d.innerHTML=SUGAR.language.get(module_sugar_grp1, ‘LBL_DELIVERY’);
…}
…
function insertProductLine(tableid, groupid) {
…
var d = x.insertCell(5);
d.innerHTML = “” + prodln + “”;
…
}
Instead of the name delivery i am getting head as undefined and there is no options inside the select field. I have attached a screen shot of line items.
Please help.
You created the dropdown via studio? Which module was that in? You really need to create the dropdown field in the hidden module called AOS_Product_Quotes which is not available from studio, unless you have changed that?
Thanks Andy, after reading your post, i did edit the line_items.php and now i can see the fields but the header is still undefined can you help me with that?
I have installed New SuiteCRM version but unable to make changes in line items through studio ,So i edited in line_item.js file from aos_products_quotes and created field as Mark Up % (upon adding value into it should calculate % percentage from list price sum up to total cost ,opposite to discount field ) the calculation and everything is working fine but the problem is Upon Editing old quote(from quote module which has been created) the line item field Mark Up % field is getting blank where in previous the field was added and unable to display in detail view , Please some one help me Thanks!!