I have few custom fields in Expense Claim Detail.
Now, I want to write a custom script like, when user selects vehicle_type as “Two Wheeler” then rate should become 2.4 below is my code for the same but it is not working can anybody help me in this regard?
Hi Rohit,
Thanks a lot, it worked for me.
Just tell me one more that, I want to assign the value of amount as ratekm
I tried it, but its not working.
frappe.model.set_value(“Expense Claim Detail”, d.name, “amount”,ratekm);
Can you tell me the work around for the same?