Add service fields to line items

I need to create more fields for service on line items in quotes. However, I can create at most the same fields related to the products in line_items.js. I checked the database and saw that the input of services and products are the same, only changes the type. What I would like to know is how to insert fields beyond existing ones simply. For example, would it work to create the fields in studio in line Items and just reference in line_items.js within AOS_Products_Quotes?

Have a look around the forums via search as there are a few threads that help out users in this area:

e.g Undefined fields in Line Items

1 Like

Thanks

I do not know what Iā€™m doing wrong. I created the fields in line items, inserted vardefs into AOS_Products_Quotes, and changed line_items.js and Line_items.php. The field usually appears in the edit, but does not save the information entered into it, simply deletes as if it had not been filled. What may be missing, or what may I be doing wrong in this case?

The first problem I was able to solve, it is now possible to write information. But I do not know how to remove one of the calculation items, such as rate or discount, when I remove one of those fields that reoccurs the previous problem, it just does not save the data. What do I need to change to be able to remove these fields without compromising the rest?