How to calculate the values in the text fields?

calculate the values in doctype and also we fetch the data from other doctype and calcute the value and then show in current doctype?? For example in image i want to find * product of Quantity and price

  • subtract the value into discount * add the taxi fare to that value and display it on total… Pls tell me how and give me javascript code


Following is the example of custom script for calculating value in one field based on value in other fields.

1 Like