Change line items 'product_unit_price'

Hi,
I have been customising the line items function a lot.
The last functionality I require is for the unit_price to be a completely free text box where the user can type any amount of money in irrelevant of the list_price (however the unit_price field seems to just replicate whatever is in the list_price field, I need it to be completely independent) so the the total_price field can then calculate the difference, i.e. profit.

How do I make unit_price an independent field and then have the total_price field calculate the difference?
Thanks

You will have to edit the JavaScript code in: modules/AOS_Products_Quotes/line_items.js. You will have to change how the calculations are working etc…

If you are making core modification like this then its up to you to figure out how to make it work!