Is there any way we can write custom scripts that trigger on System Populated Fields.
E.g. the Pricing Rule field in a Sales Order form - users cannot key in the Pricing Rule, instead it is suggested by the System. Is it possible to listen on changes to this field?
I have tried cur_frm.cscript.pricing_rule = function(doc, cdt, cdn) {…} but it does not work.
I am trying to use a frappe.call({ … }) to pull information from the Pricing Rule Doctype once the Pricing Rule is fired. Is this possible? or are there alternatives?