I need to override the function that calculate the amount in the quotation item quantity * rate by quantity * rate * length * width knowing i had changed in the client side but when saving the quotation it returns to the original formula I tried the two following script but I can’t seem to access the field anyone got any ideas ? thank you in advance.
I’m using doctype event:
Not sure if it’s the same, but I needed to overwrite a standard item price on occasion for Sales Invoices. My solution is janky, but it worked. I added a setTimeout so my custom prices were able to populate in the rate field after frappe had pulled the stand price through.