I am trying to retrieve data on a custom field that I have created in the Pricing Rule form. The field name is "rebate". I have also created the "rebate" field in the Sales Order Item doctype.
I have tried the following custom script both in the Sales Order doctype and Sales Order Item doctype:
On 29-Sep-2014, at 3:50 pm, Javier Wong <bo...@gmail.com> wrote:
Dear Experts,
I am trying to retrieve data on a custom field that I have created in the Pricing Rule form. The field name is "rebate". I have also created the "rebate" field in the Sales Order Item doctype.
I have tried the following custom script both in the Sales Order doctype and Sales Order Item doctype:
Yes, cleared cache. Based on the network request the value is not returned (as per attached image).
FYI, this works: I tried “cur_frm.add_fetch(‘item_code’,‘lead_time_days’,‘rebate’);” and the value is returned.
I tried fetching other fields in the Pricing Rule DocType such as max_qty and it also doesn’t work. Only difference I can think of is that item_code is keyed in by a user whereas pricing_rule is filled in by the system.