I’ve been trying to delete fields from line_items.js but everything I try just ends up with a broken invoice/quote. Does anyone have any direction on what you need to delete a field from the line item view? Specifically, I am trying to delete the part number to get more visual space to see the product name.
Matt
Not an easy task indeed.
Take a look into these threads for some ideas:
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' styl…
I have been trying to add (custom) fields from the table AOS_Products_cstm into AOS_Products_Quotes line items .
I have edited line_items.js and the sqs_objects var in the function insertLineItems like so (my custom field is ‘variant_c’ from the table ‘AOS_Products_cstm’):
sqs_objects[“product_name[” + prodln + “]”] = {
“form”: “EditView”,
“method”: “query”,
“modules”: [“AOS_Products”],
“group”: “or”,
“field_list”: [“name”, “id”,“part_number”,“variant_c”, “cost”, “price”,“description”,“c…
Thanks,
BrozTechnologies
1 Like
I appreciate the links Broz. I had not found them previously in my searches. Thanks!