Hi there,
I have try to fetch the Item Price Rate into the Stock Reconcilation Item based on Item_code.
I have created a custom script to fetch the data.
frappe.ui.form.on('Stock Reconciliation', {
refresh(frm) {
if (cur_frm.doc.company == "TOP SERVICE GROUP") {
cur_frm.set_df_property('expense_accoount', 'options', '211 - 219. Nyers- és alapanyagok - TSG');
}
}
});
frappe.ui.form.on(‘Stock Reconciliation Item’, {
refresh(frm) {
cur_frm.add_fetch(‘item_price’, ‘price_list_rate’, ‘price_list_rate’);
}
});
I have created two custom field one item_price_list to get the attahced price list and one for the price_list_rate.
But nothing happened.
Please help me out, how to correct this code.
Maybe I have started in the wrong way.
We have separate price list for every Supplier.