Hi Will,
Can you just check my thinking/Do is correct.
So i am trying to remove the discount field in the edit view of quotes (line Item - Services)
So in line_items.js located in /htdocs/modules/AOS_Products_Quotes
function insertServiceHeader
Remove
var c=x.insertCell(2);
c.style.color="rgb(68,68,68)";
c.innerHTML=SUGAR.language.get(module_sugar_grp1, 'LBL_SERVICE_DISCOUNT');
function insertServiceLine
Remove
var a2 = x.insertCell(2);
a2.innerHTML = "<input type='text' style='text-align: right; width:90px;' name='service_product_discount[" + servln + "]' id='service_product_discount" + servln + "' size='12' maxlength='50' value='' title='' tabindex='116' onfocus='calculateLine(" + servln + ",\"service_\");' onblur='calculateLine(" + servln + ",\"service_\");'><input type='hidden' name='service_product_discount_amount[" + servln + "]' id='service_product_discount_amount" + servln + "' value='' />"
+ "<select tabindex='116' name='service_discount[" + servln + "]' id='service_discount" + servln + "' onchange='calculateLine(" + servln + ",\"service_\");'>" + discount_hidden + "</select>";
With these lines removed from this file it should have stopped the discount field from appearing?
I’m i missing something really obvious?
Sorry to be a pain.
Regards,
Matt