Hi,
I have created a custom doctype where in I have added 4 fields i.e. Item code,Quantity,price list rate and amount and for the same below code is added :
1.To fetch item price on selection of item code,getting a message ( Wrong fieldname price_list_rate in add_fetch configuration of custom script) :
var item_price;
cur_frm.add_fetch(“item_code”, “rate”, “price_list_rate”);
- Calculate amount based on quantity and pricelist rate fetched :
cur_frm.set_value(“amount”, “quantity” * “price_list_rate”)
Adding a screenshot of the fields added.Please if anybody could help me out on this?